Mega Code Archive

 
Categories / VisualBasic Script / Date Functions
 

AMPM - Uses the 12-hour clock and displays the AM or PM string literal defined for the system

Sub formatDemo34()     Debug.Print Format(#4/1/2006 12:36:54 PM#, "AMPM") End Sub