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
close icon

How to compare date selected in the text box with server date

I have filled the textbox called fdate on the VB.Net form using calendar control. In the date_selected function the fdate.text is read. I want to compare the fdate with the server date and submit the form if the fdate <= server.sysdate How to do this. Pl. help. BDN RAO.

1 Reply

AD Administrator Syncfusion Team December 26, 2005 09:09 AM UTC

Hi you can campare datetime objects by using < and > operators.before comparing you should convert the text in fdate to datetime object. DateTime.parse(fdate.Text) will return DateTime object best regards >I have filled the textbox called fdate on the VB.Net form using calendar control. In the date_selected function the fdate.text is read. I want to compare the fdate with the server date and submit the form if the fdate <= server.sysdate >How to do this. Pl. help. > >BDN RAO.

Loader.
Live Chat Icon For mobile
Up arrow icon