Hey there!
I didn't want to bump or resurrect an old thread which had already been hijacked a few times, so I'm starting a new one.
I got the datetime explanation from the following thread :
viewtopic.php?f=8&t=7126&start=20
What I would like to do is format datetime output from the standard numerical form to something like
D, F j, Y g:i a
or
Thursday, November 23rd, 2014 6:00 am
This is my datetime code I have. I have two identical fields, event_date and event_end_date, code is identical.
I'm still pretty new at couch's markup, so I'm trying to format it using couch's date function
I have this right after the editable datetime field for both event_date and event_end_date. Just looking at it I know I'm not doing something right, but like I said I'm pretty new to this.
I didn't want to bump or resurrect an old thread which had already been hijacked a few times, so I'm starting a new one.
I got the datetime explanation from the following thread :
viewtopic.php?f=8&t=7126&start=20
What I would like to do is format datetime output from the standard numerical form to something like
D, F j, Y g:i a
or
Thursday, November 23rd, 2014 6:00 am
This is my datetime code I have. I have two identical fields, event_date and event_end_date, code is identical.
- Code: Select all
<cms:editable
type='datetime'
name='event_date'
label='Event Date'
allow_time='1'
am_pm='1'
months='January, February, March, April, May, June, July, August, September, October, November, December'
/>
I'm still pretty new at couch's markup, so I'm trying to format it using couch's date function
- Code: Select all
<cms:date event_date format='D, F j, Y g:i a' />
I have this right after the editable datetime field for both event_date and event_end_date. Just looking at it I know I'm not doing something right, but like I said I'm pretty new to this.