Date

This Flow Script tutorial explains how to use the Date function with syntax and examples.

Description

The Date function explicitly converts the input to a date value. The input must be a string matching the format "YYYY-MM-DD HH:MM:SS".

Syntax

‌The syntax for the Date function is:

Date(input)

Parameters

input - the string which is to be converted to a date.

Returns

‌The Date function returns a date.

Example

Let's look at some Date function examples and explore how to use the Date function.‌

Date("2021-03-10 14:00:00")
Result: 2021-03-10 14:00:00 (date)

Last updated