Answers for "vba format datestring"

VBA
-1

vba date format

Dim myDate As Date, strDate As String
myDate = CDate("2021-01-28")			' Date
strDate = Format(myDate, "YYYY-MM-DD")	' String
strDate = Format(myDate, "DD/MM/YYYY hh:mm:ss")
Posted by: Guest on April-14-2021

Code answers related to "VBA"

Browse Popular Code Answers by Language