date and time comparision

Last Reply 4 days ago By dharmendr

Posted 4 days ago

how to compare date and time both with current date and time using compare validator? 

You are viewing reply posted by: dharmendr 4 days ago.
Posted 4 days ago

Hi rajiv7577,

You are trying to compare DateTime. The CompareValidator do not support DateTime. The Date Type is only for dates, not times.

You cannot use the CompareValidator.

You have to write a CustomValidator that can interpret the values of the dates.

Refer below link.

Start Time and End Time validation using CustomValidator in ASP.Net