getLocalizedDateTime( date ) method

Returns a localized representation of the given Date object.

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

Syntax

<static> getLocalizedDateTime( date ) → {String}

Parameters

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

Returns

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

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

Type:

String

(sectiondiv]

Example

var sDT = hwc.getLocalizedDateTime( date );

Source

Timezone.js, line 74.