, Guest!
Already a Member? Login or Register.

Menu



Showcase


COMING SOON:  FlexCMS 3.2.2!!!

Home > FlexCMS Support Forum > User Help > Code Snippets > How can I change the format displayed in the Date and Time block?

FlexCMS Support Forum


How can I change the format displayed in the Date and Time block?
Started January 18, 2005 @ 6:58pm by DCSun
Post Message 
DCSun
Administrator



Posts: 611
 
How can I change the format displayed in the Date and Time block?January 18, 2005 @ 6:58pm
The 'Date and Time' block included with FlexCMS simply makes use of the PHP date function to convert your server's current timecode to a nice readable format. It uses a string of letters which represent the various pieces of information you may wish to display.

If you wanted to display a 24 hour clock, for example, you could use this:

Code

print date("l, F jS, Y, H:i");

which would display this:

Quote

Tuesday, January 18th, 2005, 18:51


You can find all the formatting codes on the PHP site's page for the date function: http://www.php.net/manual/en/function.date.php

If you're still having troubles getting your date and time to look the way you would like, feel free to post your question in the support forums and someone will be happy to help you get it sorted out.


FlexCMS v3.2 Has Been Released!
 

Last Edit: January 18, 2005 @ 7:01pm by DCSun

Post Message 




Try & Buy FeedForAll - Easy to use RSS Feed Creator - great for iTunes users!

MEMBERS



FlexCMS eNews

To subscribe to our enewsletter, please enter your email address in the box below and click the "Subscribe" button.


Note:  You may easily remove yourself from the newsletter list at any time by following the instructions included with every mailing.



All Contents, Code, Scripts and Technologies Copyright 2003-2009 FlexCMS.
All Rights Reserved. Software License Agreement

Processing Time: 0.11755 seconds.
 
Management Login

Powered By FlexCMS
Powered By FlexCMS