, Guest!
Already a Member? Login or Register.

Menu



Showcase


Due to the volume of spam happening on our forums, posting is now restricted to verified members only.  If you're not verified, drop us a note with your username.

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: 625
 
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




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

Processing Time: 0.07297 seconds.
 
Management Login

Powered By FlexCMS
Powered By FlexCMS