Views:

Product: LABELVIEW, CODESOFT
Version: All Versions

DateValue Function

The DateValue() function converts a text-formatted date into a valid date value.

Syntax:
DateValue(formattedDate, dateFormat)
Parameter / Return Value Type Description
Return Value Date Returns a date value converted from the formattedDate parameter.
formattedDate String A text-formatted date to convert into a date value.
dateFormat String Optional. If omitted, the system date format is used.
If specified, provide the date format string, for example: dd/mm/yy.

Example

Function:
DateValue(22062023,"ddmmyyyy")

Result:
Returns the date: 22/06/2023