getLocalizedDate( date ) method

Returns a localized representation of the given Date object.

Queries the platform OS for a locale- formatted date string.

Syntax

<static> getLocalizedDate( date ) → {String}

Parameters

Name Type Description
date Date Date to be localized, initialized to some valid time.

Returns

Returns a localized date string, or undefined if platform is unsupported.

[/reference/refbody/section/sectiondiv {""})

Type:

String

(sectiondiv]

Example

var sD = hwc.getLocalizedDate( date );

Source

Timezone.js, line 118.