:: Home >>

setDataTimezone

Sets the timezone for the datasource date strings.

If the datasource timezone is not specified and the timezone information is not present in the date string - the local timezone offset is used.

Syntax

date.setDataTimezone(offset);

Parameters

offset (number) - timezone offset in milliseconds

Examples

var date = new AW.Formats.Date;
date.setDataTimezone(-5*3600000); // GMT-5 hours

Remarks

setDataTimezone() method works only with default format (which does not provide timezone information).

See also

setTextTimezone, setDataFormat, setCellFormat methods

Comments

No comments yet.
Comments will appear on this page and in the main forum.

Documentation:

Recent changes:

2.5.0 - 2.5.2
2.5.2
2.5, 2.5.1
2.5.1
2.5
Release History
2.5
2.0.2
textToValue
textToData