Dim tdate As Date = CType("9/1/2004", Date)
Dim wkday as string = tdate.ToString("dddd")
When this code executes, the value of wkday will be Wednesday. Using the following code, you can also return the Weekday abbreviation - Wed:
wkday = tdate.ToString("ddd")
No comments:
Post a Comment
Note: Only a member of this blog may post a comment.