Mega Code Archive

 
Categories / VisualBasic Script / Date Functions
 

M - Displays an integer from 1 to 12 giving the number of the month without a leading zero on single-digit months

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