FORUMS


The Form Tools forums are no longer active, but the old posts have been archived here. Please see the Help page on how to get help / report issues.

Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Formatting submission_date field
#1
I am pulling a date from the submission_date field, which echo's to a php page. When I view the date by editing the submission, I see "June 07,2011 10:49 PM " When I echo the submission_date field it says "2011-06-07 22:49:38".

How do I reformat that date to show it in the format: F d, Y g:i T

Thanks!
Alex
Ok, so as it usually goes, I spent an hour and a half trying to figure it out.. and now that I posted this, I got it:

Code:
<?php $date = $f5;
echo date('F d, Y g:i T', strtotime($date)); ?>


($f5 is the submission_date field)



(Jun 8th, 2011, 5:09 PM)alexh Wrote: I am pulling a date from the submission_date field, which echo's to a php page. When I view the date by editing the submission, I see "June 07,2011 10:49 PM " When I echo the submission_date field it says "2011-06-07 22:49:38".

How do I reformat that date to show it in the format: F d, Y g:i T

Thanks!
Alex

Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)