Skip to content
Kerri Shotts edited this page Jan 29, 2014 · 1 revision

(part of _y)

Parameters:

  • theNumber - the date to localize
  • theFormat - optional, the format string to use (d is the default)
  • theLocale - optional, the locale to localize to

Returns: a localized date

Depends On: jQuery/Globalize

The number is passed to jQuery/Globalize for conversion. The format is d if the theFormat is not specified; otherwise theFormat is used as the format string.

Usage

  var convertedD = _y.D(new Date()); 
Clone this wiki locally