On this Page

    loc.currentDate

    Format the current date

    Syntax

    loc.currentDate([style[, timezone]])

    Parameters

    style is the style to format the date string, possible styles are:

    ShortDefault style. The most terse form, as in "3/2/09"
    Medium"Mar 2, 2009"
    Long"March 2, 2009"
    Full"Friday, March 2, 2009"

    timezone, if present, indicates which international time zone to get the current date for. Time zones are specified by a string of the form "GMT+08:00" or "Australia/Perth" or "EST". If omitted, the time zone of the computer on which it is running will be used.

    Returned Value

    A formatted date string.

    Description

    Return the current date formatted for the language and country of the locale object loc. style indicates the display format. The style variants may not all be unique for some locales.

    See Also

    _locale (Format Currency, Number, Date/Time)
    loc.formatDate