We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date

DateTimePicker return UTC Date/Time?

Is there some other solution for this?

I mean, it works when I put this
args.data.VrijediOd = ej.data.DataUtil.dateParse.addSelfOffset(new Date(args.data.VrijediOd)).toISOString();
in the ActionBegin for Save, but maybe without writing this on every page with datagrid with date columns?

Thanks!
Bernard.


3 Replies

DR Dhivya Rajendran Syncfusion Team January 23, 2020 10:17 AM UTC

Hi Bernard, 

Thanks for contacting us. 

If we want to change date object into ISO string then we suggest you to use the DataUtil.dateParse method in actionBegin event. Unsuccessfully, we don’t have any other way/method to achieve this requirement. 

Please get back to us, If you need further assistance. 

Regards, 
R.Dhivya 



BJ Bernard Jurlina January 23, 2020 09:14 PM UTC

Hi Dhivya,

and thanks for the answer.

Regards,
Bernard.


DR Dhivya Rajendran Syncfusion Team January 24, 2020 09:36 AM UTC

Hi Bernard, 

Thanks for your update. Please get back to us if you need further assistance from us. 

Regards, 
R.Dhivya 


Loader.
Live Chat Icon For mobile
Up arrow icon