return a string containing a formatted date - Maple Help

Online Help

All Products    Maple    MapleSim


Home : Support : Online Help : Mathematics : Finance : Date Arithmetic : Finance/FormatDate

Finance[FormatDate] - return a string containing a formatted date

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)

See Also

Finance[ParseDate], StringTools[ParseTime]


Download Help Document

Was this information helpful?



Please add your Comment (Optional)
E-mail Address (Optional)
What is ? This question helps us to combat spam