Promotic
WikipediaLinkedInYoutubeTwitterFacebook

FormatDateTime - function of language VBScript

Description:
Returns an expression formatted as a date or time.
Syntax:
FormatDateTime(date As Date, [format As Integer]) As String
Calling:
s = FormatDateTime(date[, format])
Parameters:
date(Date) Date expression to be formatted
format[optional] (Integer) Numeric value that indicates the date/time format used. If omitted, 0 is used.
0 - (vbGeneralDate) Show a date and/or time. For real numbers, show a date and time. If there is no fractional part, show only a date. If there is no integer part, show time only. Date and time is shown by your system settings.
1 - (vbLongDate) Display a date using the long date format specified in your computer's regional settings
2 - (vbShortDate) Display a date using the short date format specified in your computer's regional settings
3 - (vbLongTime) Display a time using the long time format specified in your computer's regional settings
4 - (vbShortTime) Display a time using the short time format specified in your computer's regional settings
Example:
sCurrentDate = FormatDateTime(Date, 1)
© MICROSYS, spol. s r. o.Tavičská 845/21 703 00 Ostrava-Vítkovice