Hello, I’m working with an API, the timestamp os iso 8601 (2019-05-30T20:35:00-04:00)
I got that data into a placeholder, is there any way that I can modify the result with a ModX Output Modifier? I need something like: Th 30 05 2019.
I know it’s possible with Unix timestamp but not sure about this one.
thanks!
Thanks Mark for your help but it’s not working.
here more details:
I got this API url, I’m using simplx_widgeteer (if there is something better to do that please let me know) to process the data and use placeholders to display what I need.
One of the placeholders is [[+mydate]] that is displaying this: 2019-05-30T20:35:00-04:00
everything ok and all the other data is fine.
Now I need modify the format, I thought “strtotime” might help but if I use it:
[[+mydate:strtotime:date=`%Y-%m%d`]]
everything disappear, it doesn’t display anything.
can you please guide me for the best way to do that?
I’ll need the date and the time in two different places.
cheers mate!
I’ve not personally used simplx_widgeteer so can’t really speak to its qualities, but I don’t think there’s a lot of other parse-random-api-into-placeholders plugins available.
This topic was automatically closed 2 days after discussion ended and a solution was marked. New replies are no longer allowed. You can open a new topic by clicking the link icon below the original post or solution and selecting “+ New Topic”.