I have a Kendo UI grid that fetches data from API by AJAX call.
It has a column with date and the date is coming from backend in this format "2022-03-08T19:02:00".
This is one of the column of my grid where I am parsing the date :
{
field: "createdDate",
title: "Created Date",
template:"<div class='createdDateTemplate'>#= kendo.toString(kendo.parseDate(createdDate)) #</div>",
width: 150
}
I want to display this date in AEST or AEDT which ever is being followed . Is this possible from the template itself ?
EDIT :
I know that Kendo automatically renders date time in local format something like this for me:
GMT+1000 (Australian Eastern Standard Time)
But is it possible to display this time with +10 added to time itself ?
Edit: I am trying this
template:"<div class='createdDateTemplate'>#= kendo.toString(kendo.timezone.convert(kendo.parseDate(createdDate), 'Etc/UTC', 'Etc/GMT+10'), 'dd/MM/yyyy hh:mm tt') #</div>",
but I am getting this error:
Cannot read properties of null (reading 'getFullYear')