, Guest!
Already a Member? Login or Register.





Menu



Clients



Showcase



Rate FlexCMS

ScriptSearch.com Rating:

Hotscripts Rating
Excellent!
Very Good
Good
Fair
Poor



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.

LATEST DEVELOPMENT NEWS:  FlexCMS 2.5 has been released!!! Click here to read the official announcement!

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: 393
 
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.
 

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

Post Message 







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

Processing Time: 0.10384 seconds.
 

Powered By FlexCMS
Powered By FlexCMS


Valid CSS!