How to set Date manually in PowerApps Portal DateTimePicker using Jquery
Example:
Date value is "12/01/2020" (MM/dd/yyyy)
I want to set it in DateTimePicker which includes time format too.
But we can pass time as 00 as it is not required to store for my requirement.
Can you please suggest a way how to work with DateTimePicker using Jquery?
Jquery DateTimePicker (PowerApps Portal)
Solved! Go to Solution.
Try below code:
var dateValue = new Date(12/25/2020).toString("yyyy-MM-dd") + "T00:00:00.0000000";
$("fieldName").val(dateValue);
Thanks,
Hardik
Try below code:
var dateValue = new Date(12/25/2020).toString("yyyy-MM-dd") + "T00:00:00.0000000";
$("fieldName").val(dateValue);
Thanks,
Hardik