Date

GetValueAsText

Description

Returns the value of a Date Object in text format. The date is returned in a form which can be passed to the function SetValueAsText, to set the value of a date object. This pair of functions are useful if you want to allow a user to edit or view a date in text format. For purely presentational purposes, dt:GetDisplayText may be preferable as it provides more display options.

Syntax

strValue = dt:GetValueAsText()

Parameters

None

Return Value

strValue
string: The date in text format.