Script functions reference > Script functions in alphabetical order > D > Dformat

Dformat
Syntax
Dformat(str_dateformat, [yy]yymmdd);
str_dateformat
[yy]yymmdd
yyyy – year in four digits, e.g. 2005.
yy – year in two digits, e.g. 05.
mm – month.
dd – day of the month
Description
Formats a date according to the specified date format. If the date is invalid, no formatting is done, and an empty string is returned.
Returns
A formatted date.
Example
$d = dformat("mon mm year yyyy", 980923);
Result: $d="mon 09 year 1998"
OpenText StreamServe 5.6 Updated: 2013-03-01