default userpic

How to set Custom Date Fields Date formats?

Vote 0 Votes

i have created a Custom Feild with the Date/Time type but i need to know which format i have to use for the time and how the format the output date.

Regards,
Widad

Reported on Movable Type 4.0x

7 Replies

| Add a Reply
  • See this forum thread. I've not confirmed that this is still true, but the discussion there indicates that the Custom Fields of type Date are actually stored as Strings (yikes!!).

    Check this out for starters:
    http://forums.sixapart.com/lofiversion/index.php/t65912.html

    Please update this thread if you find out new information. I currently am finding it rather painful (and bug-like) that we cannot perform normal date functions on a field of type "Date and Time".

  • I just stumbled onto this discussion:
    http://blog.plasticmind.com/movable-type/custom-field-gotchas/

    ..which lead me to this 6A bug on the issue (Bug # 81514):
    http://bugs.movabletype.org/default.asp?pgx=EV&ixBug=81514&=#413475

    ...which indicates that the issue is was actually resolved internally on 26-Aug-2008. I'm not clear if the fix has been released, nor what version it is in. I do not see the bug listed in the 4.25 or prior release notes (http://www.movabletype.org/documentation/appendices/release-notes/425.html).

    I've written to 6A requesting more information.

  • 6A staff have confirmed that this bug is fixed in MT v4.23 and higher. However, the fix was not noted in the release notes for v4.23.

  • I've verified the fix in v4.25.

    Note: I'm not sure if this is related, but with 4.25 there is a bug and you cannot use CustomField values in archive paths. This used to work, but now if you try that you just get an empty string. This will break all your permalinks if you, for example, were using this value in your entry archive path.

    The bug has been reported to 6A support and replicated by them. They have not give me a bug number yet though.

  • i have inserted the custom feild values into an array and compare them to a static date value using the php if because the mt if is not giving the expected values.

    Regards,
    Widad

  • anybody knows how to format a custom field date? Tried the modifier format, but doesn't work...

  • nobody?

Add a Reply

If you need to share template code, replace all the "<" signs with "&lt;" or use this utility.

Forum Groups

1773 6162

Last Topic: Excluding categories from blog by kholechek on Feb 9, 2012

86 302

Last Topic: website entries by masoud on Oct 26, 2011

1429 5077

Last Topic: What apocalypse hit this community in the middle of 2011? by 75th on Feb 10, 2012

695 2910

Last Topic: Insert Image / File Fails by Russ Miller on Feb 10, 2012

84 291

Last Topic: How to have some other characters in entry basename automatically written by Afshin Haghighatnia on Dec 22, 2011

173 737

Last Topic: About the MT version stated in HTML source by Alex E. Schneider on Feb 7, 2012

190 567

Last Topic: Analytics Reporting by michael webster on Feb 5, 2012

48 210

Last Topic: An idea and also a request by Afshin Haghighatnia on Jun 29, 2011

64 246

Last Topic: jQuery in MT 5.1 still at 1.4 - why? by perlmonkey on May 25, 2011

code.sixapart.com

137 478

Last Topic: Getting a thumbnail with xpath by Peter on Mar 13, 2011

222 720

Last Topic: Custom Field for Asset Not Appearing by android on Feb 9, 2012