Hello, I am putting together a news archive, and I have created a channel just for those entries. In that channel I have a template setup, a with a custom field group. IN the field group I have in order:
• a ‘date field’ for a the date the news release was posted
• a ‘Text Input Field’ for the title of the news release
• a ‘Textarea’ field that contains the body of the news release.
(3 fields in all for the template) I am calling the 3 fields in the template with the following code:
{exp:channel:entries channel="pressreleasearchive"}
<h1>{title}</h1>
<strong>{DateOfEntry}</strong>
<h2>{pressReleaseTitle}</h2>
<p> {PressReleaseBody}<br />
{/exp:channel:entries}http://grounded4life2.dyndns.tv/onami/pics/dateField.png
When i preview the entry on the page, I get this:
http://grounded4life2.dyndns.tv/onami/pics/dateFieldHmm.png
The date comes in as the number ‘1102195443’ and not a date at all?
What could i be doing wrong? The rest of the fields in the field group work fine. I COULD change it to a standard text input field, but i will need to sort entries by date.
More info:
• In my entry edit page, I have the date field set to ‘fixed’, (but i tried ‘localized’ with no success as well)
• I use the calendar picker to select the date, since the field is very sensitive to the format of the date
Any help would be appreciated!
Thx,
Ed
[Mod Edit: Moved to the EE 2 Technical Support forum]