Date (FPScript)

21.09.2021

Determines the date of one or more calendar time values.

Syntax

Date(CalendarTime)
or
Date(CalendarTime, Timezone)

 

The syntax of the Date function consists of the following parts:

Part

Description

CalendarTime

The calendar time value from which the date is to be extracted.

Permitted data structures are scalar value, data series und data matrix. All real data types are permitted.

If the argument is a list, then the function is executed for each element of the list and the result is also a list.

Timezone

The time zone for which the result is to be determined, as a time shift from Coordinated Universal Time (UTC) in hours. If you omit the argument, the result is interpreted in local time.

Permitted data structures are scalar value. Supported data types are 16-bit integer, 32-bit integer, 64-bit integer, 32-bit floating point, 64-bit floating point und time span.

If the argument is a list, then the first element in the list is taken. If this is also a list, then the process is repeated.

Remarks

The data type of the result is always calendar time.

The structure of the result corresponds to that of the argument CalendarTime. The calculation is done element-by-element where appropriate.

If the argument does not represent a valid calendar time value, then a void floating point value is output.

Available in

FlexPro View, Basic, Professional, Developer Suite

Examples

Date('2.3.04 12:13:14')

Results in '1/25/2004 00:00:00'.

Date(CurrentDate(), 0)

Returns the current date in Coordinated Universal Time.

See Also

Second Function

Minute Function

Hour Function

Day Function

Month Function

Year Function

WeekDay Function

DayOfYear Function

Time Function

Share article or send as email:

You might be interested in these articles