CodeItBetter Programming Another VB Programming Blog

How to Get the Name of the Day from the inputted date

Posted on January 5, 2009
1
2
3
4
5
6
7
8
9
'Date & Time - How to Get the Name of the Day from the inputted date
Option Explicit
 
Public Function GetDayName(ByVal strDate As Date) As String
    GetDayName = Format(strDate, "dddd")
End Function
 
'How can I use this function:
strDay = GetDayName("1/2/2007")
Comments (0) Trackbacks (0)

No comments yet.


Leave a comment


 

No trackbacks yet.