Table of Contents

, ,

AS_DATE

Description

Converts the given string into a date according to the specified format.

Syntax

AS_DATE (text, format)

Cannot be used in the condition of a FIND action.

Parameters

Attribute of the Plain Text type or string constant or calculation producing text and a format string

Returns

Date: the date parsed from the text using the given format

Example

Object.DateAttr = AS_DATE ('02-25-2007', 'MM-dd-yyyy') 

AS_TIMESTAMP, AS_STRING, AS_NUMBER