6 posts by 4 authors in: Forums > CMS Builder
Last Post: August 13, 2010   (RSS)

By (Deleted User) - August 12, 2010

Hi,

This is my code:

<p>Last Updated on: <?php echo $minyanRecord['updatedDate'] ?></p>

Re: [RapidWeb] Display Last Updated Date

By Chris - August 12, 2010

Hi RapidWeb,

I'm not sure what you want. Is that not working for you?
All the best,
Chris

Re: [RapidWeb] Display Last Updated Date

Hi Rapidweb,

I would think that would work on a detail page,

On a list page <p>Last Updated on: <?php echo $record['updatedDate'] ?></p> inside your foreach loop should display the last updated date for each record.

_______________________

If formatting is the issue, then, to display M D, Y use: <?php echo date("M jS, Y", strtotime($minyanRecord['updatedDate'])) ?> or <?php echo date("M jS, Y", strtotime($record['updatedDate'])) ?>

There are many more ways to format and use dates described in the "WORKING WITH DATES" section of my CMSB Cookbook http://www.thecmsbcookbook.com

Hope that helps you.

Jerry Kornbluth
The first CMS Builder reference book is now available on-line!

Take advantage of a free 3 month trial subscription, only for CMSB users, at: http://www.thecmsbcookbook.com/trial.php

Re: [chris] Display Last Updated Date

By (Deleted User) - August 13, 2010

Sorry... but the question part is missing from my post. The Question is how to display it in US date format Month, Day, Year. Like this: 08/13/2010, or even better yet August 13, 2010. Also, without the time. Just the date.

Re: [RapidWeb] Display Last Updated Date

By (Deleted User) - August 13, 2010

OK... I got it right thanks to the CMSB Cookbook:

http://www.koshertravelinfo.com/minyan/minyan.php?Congregation-Ezrath-Israel-373

You can see it in the bottom of the page "was Last Updated on: Aug 13th, 2010".