-
- 4,205 Posts
That is the dafault time (as if it were balnk). Are you sure that phx is installed correctly? Seems like there is something that is not processing. Make sure that the correct events are set in the plug in manager, I think it only needs OnParseDocument. If that is correct then it may be a conflict with another script, in which case you need to Edit Plugin Execution Order by Event.
-
- 19 Posts
Are you sure birthday has the correct value? Have you tried to output birthday without phx modifiers?
Keep in mind that most date formatting functions in PHP expect a timestamp to start with, while most date inputs in MODx (especially those that use the javascript calendar picker widget) create a date and time (usually in the form of mm-dd-yyyy h:m:s), so trying to use a formatting function on that will be trying to work with an invalid timestamp, thus causing the output of the default beginning of the Unix epoch in 1970 (or 12-31-1969).
To properly use the date formatting functions, a script first needs to use the strtotime() function, converting a date/time string to a Unix timestamp.
-
- 412 Posts
what would be the easiest way to do this? the time doesn’t matter, only the date is what I need to work with.