Script functions reference > Script functions in alphabetical order > G > GetDateTime

GetDateTime
Syntax
GetDateTime(picture_clause);
picture_clause
Description
Uses the Picture Clause engine to return the system date and time as a string as specified by the picture clause.
An empty string returns GMT date and time in ISO format including milliseconds.
For Picture Clause syntax, see e.g. the StoryTeller documentation.
Returns
A string specifying a date and time in the format specifed by the picture clause.
Example
$a=getdatetime("");
Result:
$a="2009-04-03T11:03:30.456+01:00"
//
$b=getdatetime("MMMM DD, YYYY");
Result:
$b="April 03, 2009");
OpenText StreamServe 5.6 Updated: 2013-03-01