{{tag>Function Function_List Text}} ====== 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 [[:ref:a_f:a:find|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') ===== Related ===== [[ref:a_f:f:af:as_timestamp|AS_TIMESTAMP]], [[ref:a_f:f:af:as_string|AS_STRING]], [[ref:a_f:f:af:as_number|AS_NUMBER]]