FormatDate - Maple Help
For the best experience, we recommend viewing online help using Google Chrome or Microsoft Edge.

Online Help

All Products    Maple    MapleSim


Finance

  

FormatDate

  

return a string containing a formatted date

 

Calling Sequence

Parameters

Description

Examples

Compatibility

Calling Sequence

FormatDate(data, format)

Parameters

data

-

record; date information

format

-

record, list, or a string; (optional) date format

Description

• 

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.

Examples

withFinance:

FormatDateJan-02-2006,%D

01/02/06

(1)

FormatDateJan-02-2006,default

January 2, 2006

(2)

FormatDateJan-02-2006,list

2,1,2006

(3)

FormatDateJan-02-2006,%Y-%m

2006-01

(4)

FormatDateJan-02-2006,%d:%m:%y

02:01:06

(5)

Compatibility

• 

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]