Finance
FormatDate
return a string containing a formatted date
Calling Sequence
Parameters
Description
Examples
Compatibility
FormatDate(data, format)
data
-
record; date information
format
record, list, or a string; (optional) date format
The FormatDate command formats the date according to the formatting specification given by the string format. The date format can be any format specification as described in StringTools[ParseTime]. If the original date is given as a string, the corresponding date format will be deduced.
with⁡Finance:
FormatDate⁡Jan-02-2006,%D
01/02/06
FormatDate⁡Jan-02-2006,default
January 2, 2006
FormatDate⁡Jan-02-2006,list
2,1,2006
FormatDate⁡Jan-02-2006,%Y-%m
2006-01
FormatDate⁡Jan-02-2006,%d:%m:%y
02:01:06
The Finance[FormatDate] command was introduced in Maple 15.
For more information on Maple 15 changes, see Updates in Maple 15.
See Also
Finance[ParseDate]
StringTools[ParseTime]
Download Help Document