Date

SetValueAsText

Description

Sets the value of a Date Object from a text string. See also dt:GetValueAsText.

Syntax

bResult = dt:SetValueAsText(strText [,bAllowPhrase])

Parameters

strText
Textual description of date. Must be in a recognised format.
bAllowPhrase (optional)
If bAllowPhrase is True, and the date is not recognised, it will be interpreted as a date phrase. By default, this parameter is False.
 

Return Value

bResult
boolean: True if the Date Object was successfully updated.