How to hard code time in DatePicker

Hi,

My database column is using DateTime but when my Angular Form DatePicker craeted data into DB and the records show 2021-07-12 00:00:00.

Would like to know how to hard code the time to 23:59:59.
I have try use ${date}.setHours(23, 59, 59) but it seems like not works to me.

Hi @GeoOng ,

You can't hardcode the time in the DatePicker - it shows the time of the Date object you set its Value property to. So you need to set the time of your date property.

Hi @korchev,

If in this case, may I know how to add the date + 1?
for an example, User choose date : 07/13/2021, after submit the form and the system will add 1 more day for the date and insert into DB as 07/14/2021.