Private Function GetDayName(d As Date) As StringCara Kedua
GetDayName = WeekdayName(Weekday(d, vbMonday))
End Function
Private Function GetDayName(d As Date) As StringContoh penggunaan
GetDayName = Format$(d, "dddd")
End Function
Private Sub Command1_Click()
MsgBox GetDayName(#6/14/2012#)
End Sub