skip to main
|
skip to sidebar
VB.net Beginner
Let's begin the journey of .Net Be the fish, be free in the net.
Monday, January 18, 2010
DateSerial - To Set a Certain Date
To set a certain date and assign it to a variable, u might need this.
Example: Set and assign a variable with the first day of certain month, certain year
Dim dtDate As Date
Dim intYear, intMonth
intYear = 1986
intMonth = 12
dtDate = DateSerial(dtYear, dtMonth, 26)
Now, your dtDate with hold the date of 26th December 1986.
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
Blog Archive
▼
2010
(3)
▼
January
(3)
Get Months English Name
DateSerial - To Set a Certain Date
VB Beginner
Labels
Date
(1)
VB.NET beginner
(1)
About Me
Cpei
View my complete profile
Followers
No comments:
Post a Comment