Difference between revisions of "Date Formats Explained"
From Phoenix Cart User Guide
PeterRobert (talk | contribs) (Created page with "%a Weekday, short version Wed %A Weekday, full version Wednesday %w Weekday as a number 0-6, 0 is Sunday 3 %d Day of month 01-31 31 %b Month name, short version Dec %B Mo...") |
PeterRobert (talk | contribs) |
||
| (6 intermediate revisions by the same user not shown) | |||
| Line 1: | Line 1: | ||
| − | %a Weekday, short version Wed | + | <div class="btn btn-grey btn-back">{{#fas:arrow-left}} Back</div> <div class="btn btn-grey btn-faq">{{#fas:question-circle}} FAQ Tips & Tricks</div> |
| − | %A Weekday, full version Wednesday | + | <hr> |
| − | %w Weekday as a number 0-6, 0 is Sunday 3 | + | |
| − | %d Day of month 01-31 31 | + | <big> |
| − | %b Month name, short version Dec | + | {| class="wikitable" |
| − | %B Month name, full version December | + | |+ Date Formats for example, as used in Main Language Files<br> |
| − | %m Month as a number 01-12 12 | + | |- |
| − | %y Year, short version, without century 18 | + | | %a|| Weekday, short version|| Wed |
| − | %Y Year, full version 2018 | + | |- |
| − | %H Hour 00-23 17 | + | | %A|| Weekday, full version|| Wednesday |
| − | %I Hour 00-12 05 | + | |- |
| − | %p AM/PM PM | + | | %w|| Weekday as a number 0-6, 0 is Sunday|| 3 |
| − | %M Minute 00-59 41 | + | |- |
| − | %S Second 00-59 08 | + | | %d|| Day of month 01-31|| 31 |
| − | %f Microsecond 000000-999999 548513 | + | |- |
| − | %z UTC offset +0100 | + | | %b|| Month name, short version|| Dec |
| − | %Z Timezone CST | + | |- |
| − | %j Day number of year 001-366 365 | + | | %B|| Month name, full version|| December |
| − | %U Week number of year, Sunday as the first day of week, 00-53 52 | + | |- |
| − | %W Week number of year, Monday as the first day of week, 00-53 52 | + | | %m|| Month as a number 01-12|| 12 |
| − | %c Local version of date and time Mon Dec 31 17:41:00 2018 | + | |- |
| − | %C Century 20 | + | | %y|| Year, short version, without century|| 18 |
| − | %x Local version of date 12/31/18 | + | |- |
| − | %X Local version of time 17:41:00 | + | | %Y|| Year, full version|| 2018 |
| − | %% A % character % | + | |- |
| − | %G ISO 8601 year 2018 | + | | %H|| Hour 00-23|| 17 |
| − | %u ISO 8601 weekday (1-7) 1 | + | |- |
| − | %V ISO 8601 weeknumber (01-53) 01 | + | | %I|| Hour 00-12|| 05 |
| + | |- | ||
| + | | %p|| AM/PM|| PM | ||
| + | |- | ||
| + | | %M|| Minute 00-59|| 41 | ||
| + | |- | ||
| + | | %S|| Second 00-59|| 08 | ||
| + | |- | ||
| + | | %f|| Microsecond 000000-999999|| 548513 | ||
| + | |- | ||
| + | | %z|| UTC offset|| +0100 | ||
| + | |- | ||
| + | | %Z|| Timezone|| CST | ||
| + | |- | ||
| + | | %j|| Day number of year 001-366|| 365 | ||
| + | |- | ||
| + | | %U|| Week number of year, Sunday as the first day of week, 00-53|| 52 | ||
| + | |- | ||
| + | | %W|| Week number of year, Monday as the first day of week, 00-53|| 52 | ||
| + | |- | ||
| + | | %c|| Local version of date and time|| Mon Dec 31 17:41:00 2018 | ||
| + | |- | ||
| + | | %C|| Century|| 20 | ||
| + | |- | ||
| + | | %x|| Local version of date|| 12/31/18 | ||
| + | |- | ||
| + | | %X|| Local version of time|| 17:41:00 | ||
| + | |- | ||
| + | | %%|| A % character|| % | ||
| + | |- | ||
| + | | %G|| ISO 8601 year|| 2018 | ||
| + | |- | ||
| + | | %u|| ISO 8601 weekday (1-7)|| 1 | ||
| + | |- | ||
| + | | %V|| ISO 8601 weeknumber (01-53)|| 01 | ||
| + | |} | ||
| + | </big> | ||
| + | <hr> | ||
| + | |||
| + | {{Contribute}} | ||
Latest revision as of 13:40, 1 February 2024
Back
FAQ Tips & Tricks
| %a | Weekday, short version | Wed |
| %A | Weekday, full version | Wednesday |
| %w | Weekday as a number 0-6, 0 is Sunday | 3 |
| %d | Day of month 01-31 | 31 |
| %b | Month name, short version | Dec |
| %B | Month name, full version | December |
| %m | Month as a number 01-12 | 12 |
| %y | Year, short version, without century | 18 |
| %Y | Year, full version | 2018 |
| %H | Hour 00-23 | 17 |
| %I | Hour 00-12 | 05 |
| %p | AM/PM | PM |
| %M | Minute 00-59 | 41 |
| %S | Second 00-59 | 08 |
| %f | Microsecond 000000-999999 | 548513 |
| %z | UTC offset | +0100 |
| %Z | Timezone | CST |
| %j | Day number of year 001-366 | 365 |
| %U | Week number of year, Sunday as the first day of week, 00-53 | 52 |
| %W | Week number of year, Monday as the first day of week, 00-53 | 52 |
| %c | Local version of date and time | Mon Dec 31 17:41:00 2018 |
| %C | Century | 20 |
| %x | Local version of date | 12/31/18 |
| %X | Local version of time | 17:41:00 |
| %% | A % character | % |
| %G | ISO 8601 year | 2018 |
| %u | ISO 8601 weekday (1-7) | 1 |
| %V | ISO 8601 weeknumber (01-53) | 01 |
Phoenix Cart User Guide, like CE Phoenix Cart, is free to use but is maintained by unpaid volunteers.
All other content is the reserved Intellectual Property and Copyright of phoenixcart.org