We use cookies to improve your experience. No personal information is gathered and we don't serve ads. Cookies Policy.

ExpressionEngine Logo ExpressionEngine
Features Pricing Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University
Log In or Sign Up
Log In Sign Up
ExpressionEngine Logo
Features Pro new Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University Blog
  • Home
  • Forums

Entry_date Format variables in channel Forms

Development and Programming

cooperdjm72's avatar
cooperdjm72
11 posts
about 5 years ago
cooperdjm72's avatar cooperdjm72

This should work for changing an existing entry with an existing entry_date if I want to display the entry date in a specific format…no?

<td>{entry_date format='%m-%d-%Y'}</td>

But the renders in the browser as…

Start Date {entry_date format='%m-%d-%Y'}

without the formating Variable it renders “correctly” but with the Time which I don’t want.

Thanks…..

I can’t be sure but I have been working the site and feel like this just started happening. but it is possible I missed it from the start.

Many thanks.

       
cooperdjm72's avatar
cooperdjm72
11 posts
about 5 years ago
cooperdjm72's avatar cooperdjm72

UPDATE:

When I add both the entry_date with and without formating (twice):

<label for=”entry_date”>Spa Visit Date</label> {entry_date format='%m-%d-%Y'} | {entry_date}

They BOTH parse/render(?) as they should:

Spa Visit Date 05-21-2020 | 5/21/2020 12:00 AM

as soon as I remove the {entry_date} then the formated entry_date does not parse/render. (WTH)

Spa Visit Date {entry_date format='%m-%d-%Y'} |

       

Reply

Sign In To Reply

ExpressionEngine Home Features Pro Contact Version Support
Learn Docs University Forums
Resources Support Add-Ons Partners Blog
Privacy Terms Trademark Use License

Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.