Date Constants : Date Type « Data Type « VBA / Excel / Access / Word






Date Constants

 
Sub constSub()
    Const conDate As Date = #3/2/2004#
    Debug.Print conDate
End Sub

 








Related examples in the same category

1.Create Date type variable
2.Variables of type Date must have their values enclosed in # signs
3.Date value calculation
4.Try It Out-Dates
5.Times
6.Date and Time Functions