How to Format Date for Your Site?
Want to display the date in a specific format instead of the default one on your Tendenci site? You can accomplish this by editing two site settings: Date Format and Date Format Long.
http://yoursitedomain/en/settings/#dateformat
http://yoursitedomain/en/settings/#dateformatlong
The following characters can be used to format date.
| W | long weekday name - Thursday |
| w | short weekday name - Thu |
| D | 0 prefixed day number - 01 |
| d | day number - 1 |
| M | month name - September |
| m | short month name - Sep |
| O | 0 prefixed month number - 09 |
| o | month number - 9 |
| y | 4 digit year - 2010 |
| Y | 2 digit year - 0 prefixed if needed - 10 |
Examples:
| Format | Output |
| m d, y | Dec 8, 2009 |
| d-m-Y | 8-Dec-09 (default setting for Date Format) |
| d/o/y | 8/12/2009 |
| w d-m-Y | Tue 8-Dec-09 |
| W d-m-Y | Tuesday 8-Dec-09 (default setting for Date Format Long) |
| W, m d y | Tuesday, Dec 8 2009 |
You can test your date format here:
Date Format Output Current Date