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
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
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?