<script id="event-template" type="text/x-template">
<div class='template-wrap'>
<div class="subject">${Subject}</div>
<div class="time">${getTimeString(data.StartTime)} - ${getTimeString(data.EndTime)}</div>
<div class="description">${Description}</div>
</div>
</script>
<script type="text/javascript">
var instance = new ej.base.Internationalization();
window.getTimeString = function (value) {
return instance.formatDate(value, { skeleton: 'hm' });
};
</script> |
<script id="event-template" type="text/x-template"> <div class="time">${intl.formatDate(data.StartTime, { type: "dateTime", skeleton: "short" })}</div> </script> |
<script id="event-template" type="text/x-template"> <div class="time"> ${getTimeLocaleString(data.StartTime, 'dateTime', 'short')}</div> </script> |
<script id="event-template" type="text/x-template">
<div class='template-wrap'>
<div class="subject">${Subject}</div>
<div class="time">${getTimeString({ value: data.StartTime, type: 'dateTime', skeleton: 'short' })} - <br /> ${getTimeString({ value: data.EndTime, type: 'dateTime', skeleton: 'short'})}</div>
</div>
</script>
<script type="text/javascript">
var instance = new ej.base.Internationalization();
window.getTimeString = function (obj) {
debugger
return instance.formatDate(obj.value, { type: obj.type, skeleton: obj.skeleton });
};
</script> |