The tformat specification
The tformat specification is used by the to_char and to_date functions. The values supported by nzLua are a subset of those allowed by the SQL to_char and to_date functions. With the exceptions of DAY, DY, MON, and MONTH the format characters are not case sensitive (YYYY, yyyy, and YyyY all represent the same thing - a 4 digit year)
| AM / A.M. | Meridian indicator |
| CC | Century |
| DAY | Full day name |
| Day | Full day name with first character capitalized |
| DD | Day in 01-31 format |
| DDD | Day of the year |
| DY | Three letter abbreviated day name |
| Dy | Three letter abbreviated day name with first character capitalized |
| MI | Minutes in 00-59 format |
| MM | Month in 01-12 format |
| MON | Three letter abbreviated month name in upper case |
| Mon | Three letter abbreviated month name with first character capitalized |
| MONTH | Full month name in upper case |
| Month | Full month name with first character capitalized |
| HH | Hours in 00-12 format |
| HH12 | Hours in 00-12 format |
| HH24 | Hours in 00-23 format |
| PM / P.M. | Meridian indicator |
| SS | Seconds in 00-59 format |
| YY | Two digit year |
| YYYY | Four digit year |