Update cookies preferences
Promotic

FormatDateTime - function of language VBScript

Description:
Returns an expression formatted as date or time.
In the PROMOTIC system it is better to use the PmFormat object (see Examples for DateTime type).
Syntax:
String FormatDateTime(Date date, [Integer format])
Parameters:
date(Date) Date to be formatted
format[optional] (Integer) Numeric value specifies the date/time format used.
If not set, then 0 is used.
0 - (vbGeneralDate) Displays a date and/or time. For real numbers, show a date and time. If there is no fractional part, then show only a date. If there is no integer part, then show time only. Date and time is shown by system settings of the computer.
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:
VBScriptSelect and copy to clipboard

Dim sCurrentDate
sCurrentDate = FormatDateTime(Date, 1)
PROMOTIC 9.0.31 SCADA system documentation MICROSYS, spol. s r.o.

Send page remarkContact responsible person
© MICROSYS, spol. s r.o.