:: Documentation >>

setTextFormat

Sets the formatting pattern for the dates.

null

Syntax

date.setTextFormat(pattern);

Parameters

pattern (string) - text format

Examples

var date = new AW.Formats.Date;
date.setTextFormat("dddd, mmmm d, yyyy hh:mm:ss");

Remarks

format pattern tokens -

hh         // hours
:mm or mm: // minutes 
ss         // seconds
tt         // AM/PM
dddd       // long weekdays
ddd        // short weekdays
dd         // day (leading zero)
d          // day
mmmm       // long month
mmm        // short month
mm         // month (leading zero)
m          // month
yyyy       // year (4 digits)
yy         // year (2 digits)

See also

setDataFormat, setCellFormat methods

Comments

Documentation:

Recent changes:

2.6.4
2.6.3
2.6.2
2.6.1
2.6.1
2.6.0
2.5.0 - 2.5.6
2.5.6
2.5.0 - 2.5.5
2.5.5