Oh no! Where's the JavaScript?
Your Web browser does not have JavaScript enabled or does not support JavaScript. Please enable JavaScript on your Web browser to properly view this Web site, or upgrade to a Web browser that does support JavaScript.
Not a member yet? Click here to register.
Forgot Password?

[GUIDE] PHPFusion Change Date/Time Format

Pinned Asked Modified Viewed 11,963 times
N
NetriX
N
NetriX 10
Need help? Having trouble?
» View our Documentation for guides, functions and more - including the Getting Started section!
» Attach Log Files and Screenshots when reporting issues
» My support days are usually Mon-Thurs. Send me a PM if urgent.
  • Senior Member, joined since
  • Contributed 566 posts on the community forums.
  • Started 93 threads in the forums
  • Started this discussions
asked
Senior Member

The PHPFusion 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
[ulist=square]%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[/ulist]
Week
[ulist=square]%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[/ulist]
Month
[ulist=square]%m mm month 03
%h Mon Mar
%b Mon, locale's abbreviated Mar
%B locale's full month, variable length March[/ulist]
Year
[ulist=square]%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[/ulist]
Century
[ulist=square]%C cc century 00–99[/ulist]
Date
[ulist=square]%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[/ulist]
Hours
[ulist=square]%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[/ulist]
Minutes
[ulist=square]%M MM minutes 26[/ulist]
Seconds
[ulist=square]%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[/ulist]
Time
[ulist=square]%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)[/ulist]


________________________________________________________

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 19:09,
0 replies

3 posts

H
HobbyMan
H
Just some Guy
  • Veteran Member, joined since
  • Contributed 1,486 posts on the community forums.
  • Started 91 threads in the forums
answered
Veteran Member

Nice - stickied
0 replies
P
PolarFox
P
  • Veteran Member, joined since
  • Contributed 1,633 posts on the community forums.
  • Started 29 threads in the forums
answered
Veteran Member

Also, from manual:
http://php.net/manual/en/function.str...rftime.php
Take a look to "format".
0 replies
P
PHPar
P
PHPar 10
  • Member, joined since
  • Contributed 118 posts on the community forums.
  • Started 7 threads in the forums
answered
Member

nice good information
0 replies

Labels

None yet

Statistics

  • Views 0 views
  • Posts 3 posts
  • Votes 0 votes
  • Topic users 4 members

4 participants

H
H
Just some Guy
  • Veteran Member, joined since
  • Contributed 1,486 posts on the community forums.
  • Started 91 threads in the forums
N
N
NetriX 10
Need help? Having trouble?
» View our Documentation for guides, functions and more - including the Getting Started section!
» Attach Log Files and Screenshots when reporting issues
» My support days are usually Mon-Thurs. Send me a PM if urgent.
  • Senior Member, joined since
  • Contributed 566 posts on the community forums.
  • Started 93 threads in the forums
  • Started this discussions
P
P
  • Veteran Member, joined since
  • Contributed 1,633 posts on the community forums.
  • Started 29 threads in the forums
P
P
PHPar 10
  • Member, joined since
  • Contributed 118 posts on the community forums.
  • Started 7 threads in the forums

Notifications

Track thread

You are not receiving notifications from this thread.

Related Questions

Not yet