Date display
3 posts by 2 authors in: Forums > CMS Builder
Last Post: April 28, 2011 (RSS)
By Ginslinger - April 27, 2011
On my category page I have three columns that has to display category name, # Records, and last updated date.
I have the last updated date showing correctly but need to format it so as not to show the time. Date also needs to display Month, day, year.
Just using the simple tag below to display last updated.
<?php echo $categoryRecord['updatedDate']; ?>
I have the last updated date showing correctly but need to format it so as not to show the time. Date also needs to display Month, day, year.
Just using the simple tag below to display last updated.
<?php echo $categoryRecord['updatedDate']; ?>
Re: [Ginslinger] Date display
By Ginslinger - April 28, 2011 - edited: April 28, 2011
Got it working by changing this
<?php echo $categoryRecord['updatedDate']; ?>
To this
<?php echo date("M jS, Y", strtotime($categoryRecord['updatedDate'])) ?>
<?php echo $categoryRecord['updatedDate']; ?>
To this
<?php echo date("M jS, Y", strtotime($categoryRecord['updatedDate'])) ?>
Re: [Ginslinger] Date display
By robin - April 28, 2011
Hey,
Good to hear that you got it working. Please let us know if you have any more trouble.
Robin
Good to hear that you got it working. Please let us know if you have any more trouble.
Robin
Robin
Programmer
interactivetools.com
Programmer
interactivetools.com