date format display in Editor
8 posts by 2 authors in: Forums > CMS Builder
Last Post: April 28, 2011 (RSS)
By (Deleted User) - April 27, 2011 - edited: April 27, 2011
I have a "Date Field" in the editor. It shows now for example as 2011-04-16.
Anyway to show this as April 16, 2011 or even, Saturday, April 16, 2011?
This is only in the editor not in the published pages. See attached.
Re: [RapidWeb] date format display in Editor
By Djulia - April 27, 2011 - edited: April 27, 2011
Robin wrote a plugin to do this.
You can modify the format of the date, line 25.
Djulia
P.S. : Robin, thank you again !
Re: [Djulia] date format display in Editor
By (Deleted User) - April 28, 2011
Re: [RapidWeb] date format display in Editor
By Djulia - April 28, 2011
in folder /plugins/
...you must then activate the plugin in Admin > Plugins.
Djulia
Re: [Djulia] date format display in Editor
By (Deleted User) - April 28, 2011
Saturday, April, 30, 2011
I don't care for the time to display.
I tried playing with PHP script and I am getting an error. Please see attached screen shot.
Thank you again for all your help!
Re: [RapidWeb] date format display in Editor
By Djulia - April 28, 2011 - edited: April 28, 2011
You can test line 25 : $dateFormat = "l, F, d, Y";
… and for the error line 20 : strtotime(@$displayValue) ?
Djulia
Re: [Djulia] date format display in Editor
By (Deleted User) - April 28, 2011
And again, your help is very much apreciated. Keep in mind I have no idea how to write PHP!
Re: [RapidWeb] date format display in Editor
By Djulia - April 28, 2011 - edited: April 28, 2011
You can test @strtotime($displayValue) ?
Djulia