Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > ASP General > How to check days?

Reply
Thread Tools

How to check days?

 
 
dave
Guest
Posts: n/a
 
      06-18-2004
Hi
How can I check if today is Sunday or Saturday and put it
into If EndIf condition.
Thanx
dave
 
Reply With Quote
 
 
 
 
dave
Guest
Posts: n/a
 
      06-18-2004
sorry for posting
I got the solution..
thanx
dave
>-----Original Message-----
>Hi
>How can I check if today is Sunday or Saturday and put

it
>into If EndIf condition.
>Thanx
>dave
>.
>

 
Reply With Quote
 
 
 
 
dlbjr
Guest
Posts: n/a
 
      06-18-2004
Sub Process(date1)
If IsDate(date1) Then
Select Case DatePart("w",date1)
Case 1 'Sunday
'Do Something
Case 2 'Monday
'Do Something
Case 3 'Tuesday
'Do Something
Case 4 'Wednesday
'Do Something
Case 5 'Thursday
'Do Something
Case 6 'Friday
'Do Something
Case 7 'Saturday
'Do Something
End Select
End If
End Sub

-dlbjr

Discerning resolutions for the alms


 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Re: How include a large array? Edward A. Falk C Programming 1 04-04-2013 08:07 PM
how to selecet check box in the data grid ?? only one check box mit ASP .Net 1 01-25-2006 06:47 PM
how to check all check boxes in repeater control kris ASP .Net 0 09-22-2005 06:29 PM
how to check all check boxes in repeater control kris ASP .Net 0 09-22-2005 06:29 PM
.Net Pro include Visual Source Safe or other Code Check in Check out software? Davisro ASP .Net 1 06-14-2004 03:23 PM



Advertisments