Mega Code Archive
Categories
/
VisualBasic Script
/
Date Functions
Yyyy - Displays a number from 0100 to 9999 giving the four-digit year
Sub formatDemo22() Debug.Print Format(#4/1/2006 12:36:54 PM#, "yyyy") End Sub