This is my template
So nothing shows up in the .date DIV...
If I change that line to be
# console.log(kendo.toString(kendo.parseDate(data.DateDetails.StartDate), "dd/MM/yyyy")); #
The JS console in my browser shows all the dates properly formatted for me...why are they not rendering as strings in the template?
<
script
id
=
"itemTemplate"
type
=
"text/html"
>
# if(data.IsSandbox){ #
<
div
class
=
"draft"
>
# } else {#
<
div
class
=
"live"
>
# } #
# if(data.IsSandbox){ #
<
strong
class
=
"text-info"
>#: Name # (#: ProgramDesignID #)</
strong
>
# } else {#
<
strong
class
=
"text-success"
>#: Name # (#: ProgramDesignID #)</
strong
>
# } #
<
div
class
=
'detailcontainer'
>
<
div
class
=
'date'
>
# kendo.toString(kendo.parseDate(data.DateDetails.StartDate), "dd/MM/yyyy"); #
</
div
>
<
div
class
=
'details'
>
#: Details.ProgramName #
</
div
>
</
div
>
</
div
>
</
script
>
So nothing shows up in the .date DIV...
If I change that line to be
# console.log(kendo.toString(kendo.parseDate(data.DateDetails.StartDate), "dd/MM/yyyy")); #
The JS console in my browser shows all the dates properly formatted for me...why are they not rendering as strings in the template?