
The ampm functione valuates avalue expressed in the 24-hour time format (HH:MM:SS) and returns the appropriate abbreviation AM (before noon), or PM (after noon).
Time Value either as a Time Field or expressed in the 24 hour format hh:mm:ss
Example 1
Example 2
Result: AM
The ampmfunctionevaluates avalueexpressed in the 24-hour time format (HH:MM:SS) and returns the appropriate abbreviation AM (before noon), or PM (after noon).
Syntax
Returns:
A textvalue(either AM or PM).
Usage:
Timevaluesfrom midnight (00:00:00) to (11:59:59) return AM. Timevaluesfrom noon (12:00:00) to (23:59:59) return PM.
Examples:
Returns:AM
Returns:PM