entry_date
Posted: 22 March 2011 05:45 PM   [ Ignore ]
Wallflower
Rank
Total Posts:  23
Joined  2010-06-10

I’ve got a safecracker form that keeps creating entries with the date 12/31/69 06:33 pm. That part of my form code is

<input type="hidden" name="entry_date" id="entry_date" value="{entry_date format="%Y-%m-%%H:%i"}"

Any ideas why?

Profile
 
 
Posted: 22 March 2011 07:08 PM   [ Ignore ]   [ # 1 ]
Teen Scream
Avatar
RankRankRank
Total Posts:  3541
Joined  2009-05-29

You don’t need to add a format to {entry_date}, it gets auto formatted.

Profile
 
 
Posted: 22 March 2011 07:17 PM   [ Ignore ]   [ # 2 ]
Wallflower
Rank
Total Posts:  23
Joined  2010-06-10

Okie Dokie. Thanks!

Profile
 
 
Posted: 04 April 2011 10:38 PM   [ Ignore ]   [ # 3 ]
Wallflower
Rank
Total Posts:  23
Joined  2010-06-10

I’m getting an error “The Entry Date you submitted was not formatted correctly (year-month-day hour:minute)” with just the {entry_date} but it works with {entry_date format="%Y-%m-%d %H:%i"} however the date comes out wrong…

Profile