StructureJS

0.10.1

Code and documentation for the StructureJS library.

DateUtil Class

Defined in: js/util/DateUtil.js:9
Module: util
Parent Module: StructureJS

A helper class that deals with dates.

Index

Show:

Properties

Methods

Properties

LONG_DAY_LABELS Array. public final static

A list of day names.

LONG_MONTH_LABELS Array. public final static

A list of month names.

SHORT_DAY_LABELS Array. public final static

TODO: YUIDoc_comment

SHORT_MONTH_LABELS Array. public final static

TODO: YUIDoc_comment

There are no properties that match your current filter settings. You can change your filter settings in the index section on this page. index

Methods

getDaySuffix
(
  • today
)
String public static

Returns the suffix of a given day.

Parameters:

Returns:

Example:

 DateUtil.getDaySuffix(1);
 // 'st'

 DateUtil.getDaySuffix(2);
 // 'nd'

 DateUtil.getDaySuffix(3);
 // 'rd'

 DateUtil.getDaySuffix(4);
 // 'th'

There are no methods that match your current filter settings. You can change your filter settings in the index section on this page. index