You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi,
is there any way to format the output of an articles date?
title: Hello World
date: 2012-01-31 15:00
Currently, this date outputs to : Tue Jan 31 2012 15:00:00 GMT+1100 (EST)
I would like to have it formatted as '31 Jan 2012'.
I know I could just create another custom metadata item like "myDate: 31 Jan 2012", but it would
be cool to have it automatically formatted so I dont need to worry about updating it.
The text was updated successfully, but these errors were encountered:
The date attribute of the page plugin returns a date object so you can format it as you like.
However it's not that convenient to format dates in javascript w/o some helper functions. I'm considering bundling some node date library to provide date formatting like date.format('Y-M-D H:i:s')
Hi,
is there any way to format the output of an articles date?
title: Hello World
date: 2012-01-31 15:00
Currently, this date outputs to : Tue Jan 31 2012 15:00:00 GMT+1100 (EST)
I would like to have it formatted as '31 Jan 2012'.
I know I could just create another custom metadata item like "myDate: 31 Jan 2012", but it would
be cool to have it automatically formatted so I dont need to worry about updating it.
The text was updated successfully, but these errors were encountered: