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.
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

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

Thread ID:

Created:

Updated:

Platform:

Replies:

37598 Nov 27,2005 11:30 AM UTC Dec 26,2005 09:09 AM UTC ASP.NET Web Forms (Classic) 1
loading
Tags: FAQ
Administrator [Syncfusion]
Asked On November 27, 2005 11:30 AM UTC

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.

Administrator [Syncfusion]
Replied On 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.

CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon

;