abbr
Returns the timezone abbreviation.
Parameters
targetDate Date
The date that will be used to get the timezone abbreviation of.
timezone String
The name of the particular timezone that will be used to get the abbreviation of.
Returns
String
Returns the timezone abbreviation.
Example
<script>
var version = kendo.version;
$.getScript(
"https://kendo.cdn.telerik.com/" +
version +
"/js/kendo.timezones.min.js",
loadExample,
);
function loadExample() {
var targetDate = new Date(2016, 10, 5, 15, 25, 11);
var abbr = kendo.timezone.abbr(targetDate, "Europe/Rome");
/* The result can be observed in the DevTools(F12) console of the browser. */
console.log(abbr); // EET
}
</script>
In this article