ClassMicrosoft.VisualBasic.Strings SyntaxDim result As String = FormatDateTime(expression[, dateFormat])
DescriptionThe FormatDateTime function formats a date or time expression based on the computer's regional settings. Usage at a GlanceThe following two statements are identical: niceDate = FormatDateTime(sourceDate, DateFormat.LongDate) niceDate = Format(sourceDate, "Long Date") See AlsoFormat Function, FormatCurrency, FormatNumber, FormatPercent Functions |