How to Check if the Date is in DayLightSaving Range using VB.NET
VB.NET’s DAteTime function can be used to give the same output VBA’s DateSerial function
Sub GetDate()
Dim MyDate As DateTime
MyDate = New DateTime(2008, 8, 15)
MsgBox(DateSerial(2008, 8, 15))
If MyDate.IsDaylightSavingTime() = True Then
MsgBox("Specified day is within daylightsaving time")
End If
End Sub
![Digg Digg](http://benny.ayong.googlepages.com/digg.png)
![Technorati Technorati](http://benny.ayong.googlepages.com/technorati.png)
![Del.icio.us Delicious](http://benny.ayong.googlepages.com/delicious.png)
![Stumble Upon StumbleUpon](http://benny.ayong.googlepages.com/stumbleupon.png)
![reddit Reddit](http://benny.ayong.googlepages.com/reddit.png)
![BlinkList BlinkList](http://benny.ayong.googlepages.com/blinklist.png)
![Furl Furl](http://benny.ayong.googlepages.com/furl.png)
![Mixx Mixx](http://benny.ayong.googlepages.com/mixx.png)
![facebook Facebook](http://benny.ayong.googlepages.com/facebook.png)
![Google Bookmark](http://benny.ayong.googlepages.com/googlebookmark.png)
![Yahoo Myweb Yahoo](http://benny.ayong.googlepages.com/yahoomyweb.png)
![ma.gnolia](http://benny.ayong.googlepages.com/magnolia.png)
![squidoo](http://benny.ayong.googlepages.com/squidoo.png)
![newsvine](http://benny.ayong.googlepages.com/newsvine.png)
![live](http://benny.ayong.googlepages.com/live.png)
![netscape](http://benny.ayong.googlepages.com/netscape.gif)
![tailrank](http://benny.ayong.googlepages.com/tailrank.png)
![mister-wong](http://benny.ayong.googlepages.com/misterwong.gif)
![blogmarks](http://benny.ayong.googlepages.com/blogmarks.png)
![slashdot](http://benny.ayong.googlepages.com/slashdot.png)
![spurl](http://benny.ayong.googlepages.com/spurl.png)
![StumbleUpon](http://www.stumbleupon.com/images/stumble7.gif)
No comments:
Post a Comment