|
|
|||||||||
|
|||||||||
|
|||||||||
| |
||
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
Free Web 2.0 Code Generator! Generate data entry and reporting .NET Web apps in minutes. Quickly create visually stunning, feature-rich apps that are easy to customize and ready to deploy. Download Now!
|
|
#1
|
|||
|
|||
|
check date status....
Does anyone know how to check for date status? I am trying to incorporate todays date in my if statement. I have a text box, txttoday, that retrieves todays date on my form activation. Can anyone see the error in my code in the first line?
If txtselection.Text = "Quarterly" And txttoday.Text <= "10/31/2004" Then do something Else do something else EndIf Any ideas where I am going wrong? thanks! kristin |
|
#2
|
|||
|
|||
|
If txtselection.Text = "Quarterly" And txttoday.Text <= date(now)Then
do something Else do something else EndIf or If txtselection.Text = "Quarterly" And txttoday.Text <= date() Then do something Else do something else EndIf regards ashish mct,mcse,mcsd,mcdba |
|
#3
|
|||
|
|||
|
Actually, I need to check the value of "today" against 4 dates....that is - quarterly.
If txtselection.Text = "Quarterly" And txttoday < "01/01/2004" Then just can't get the format right..... |
|
#4
|
|||
|
|||
|
found my solution in my book, in case anyone was wondering....
If txtselection.Text = "Quarterly" And txttoday.Text <= #10/31/2004# Then do something Else do something else EndIf the # is the key ![]() |
![]() |
| Viewing: ASP Free Forums > Programming > Visual Basic Programming > check date status.... |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|
|
|
|