Login
Username

Password



Not a member yet?
Click here to register.

Forgotten your password?
Request a new one here.
Navigation
Latest Addons
AD Gallery 45
SyntaxHighlighte... 48
Newsletters v4.03 107
Facebook Like Box 123
Newsletters v4.02 56
Metro 157
Facebook Connect 166
Shoutbox Panel 125
Redactor for PHP... 104
MI Floating Side... 106
Facebook Login/R... 149
Avatar Studio v2.03 177
Relationship Sta... 96
Sexual Orientati... 113
Fisherman 140
Popular Addons
iTheme2 5797
Arise 5785
User Control v1.23 4616
Event Calendar 4046
Photowidget panel 3884
Radio-Theme red2... 3350
Highslide Gallery 3311
CSS/JavaScript D... 3223
Facebook Connect... 2980
Dynamic Menu 2889
Slideshow Lightb... 2719
L-AMANT 2656
Enigma 2630
2Dark 2603
Black 2571
View Thread
Who is here? 1 guest(s)
 Print Thread
[GUIDE] PHP-Fusion Change Date/Time Format
NetriX
The PHP-Fusion admin panel limits time displays with the drop-down menu. There are so many different variables to place to change the way your date/time looks.

Below is a list, if you need help just ask.

Day
  • %a weekday, abbreviated Thu
  • %A weekday, full Thursday
  • %d day of the month (dd), zero padded 10
  • %e day of the month (dd) 10
  • %j day of year, zero padded 001-366
  • %u day of week starting with Monday (1), i.e. mtwtfss 4
  • %w day of week starting with Sunday (0), i.e. smtwtfs 4

Week
  • %U week number Sunday as first day of week 01–53
  • %W week number Monday as first day of week 01–53
  • %V week of the year 01–53

Month
  • %m mm month 03
  • %h Mon Mar
  • %b Mon, locale's abbreviated Mar
  • %B locale's full month, variable length March

Year
  • %y yy two digit year 00–99
  • %Y ccyy year 2011
  • %g 2-digit year corresponding to the %V week number
  • %G 4-digit year corresponding to the %V week number

Century
  • %C cc century 00–99

Date
  • %D mm/dd/yy 03/10/11
  • %x locale's date representation (mm/dd/yy) 03/10/2011
  • %F %Y-%m-%d 2011-03-10

Hours
  • %l (Lowercase L) hour (12 hour clock) 1
  • %I (Uppercase I) hour (12 hour clock) zero padded 01
  • %k hour (24 hour clock) 13
  • %H hour (24 hour clock) zero padded 13
  • %p locale's upper case AM or PM (blank in many locales) PM
  • %P locale's lower case am or pm pm

Minutes
  • %M MM minutes 26

Seconds
  • %s seconds since 00:00:00 1970-01-01 UTC (Unix epoch) 1299763592
  • %S SS second 00–60
  • (The 60 is necessary to accommodate a leap second)
  • %N nanoseconds 000000000–999999999

Time
  • %r hours, minutes, seconds (12-hour clock) 01:26:32 PM
  • %R hours, minutes (24 hour clock) hh:mm e.g. 13:26
  • %T hours, minutes, seconds (24-hour clock) 13:26:32
  • %X locale's time representation (%H:%M:%S)



________________________________________________________

Currently Used at PHPFusionMods.com

Long Date: %B %d, %Y %I:%M %p > March 01, 2011 09:30 PM
Edited by NetriX on 10-03-2011 17:09
PHPFusionMods.com - Serving PHP-Fusion addons since 2007.

www.php-fusion.co.uk/infusions/addondb/img/approved_dev.png
 
http://www.phpfusionmods.com
HobbyMan
Nice - stickied
Just some Guy
 
http://www.hobbysites.net/
PolarFox
Also, from manual:
http://php.net/ma...rftime.php
Take a look to "format".
 
http://unlogic.info
PHPar
nice good information
 
rlm850
Sorry for bump, but this no longer seems to be working. Once you change it, it just displays no time at all.
 
http://www.evogaming.org
PolarFox
The code?
 
http://unlogic.info
Jump to Forum:
Similar Threads
Thread Forum Replies Last Post
Change News Category and Contents Name... help Content Administration 4 20-05-2013 13:35
How does the password encryption on php fusion work? User Administration 4 17-05-2013 19:40
Upgrade from PHP Fusion 7.00 to 7.02 Upgrading issues 3 17-05-2013 09:12
How to change displaying my home page from news.php to index.php? General Discussion 19 14-05-2013 09:24
PHP-Fusion font for new header Themes Support 4 28-04-2013 04:50
Official Home of PHP-Fusion uses cookies. Some may already have been set. Read more about our Cookies here.
Please click the button I Consent Cookies to hide this bar and accept our cookies. If you continue to use the site with no action taken, we'll assume that you consent our cookies anyway.
Cookiebar Panel byVenue