New to Kendo UI for jQuery? Start a free 30-day trial

Abbr

methods

Returns the timezone abbreviation.

Parameters:targetDateDate

The date that will be used to get the timezone abbreviation of.

timezoneString

The name of the particular timezone that will be used to get the abbreviation of.

Returns:String

Returns the timezone abbreviation.

 <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>
Not finding the help you need?
Contact Support