Need to find day of week from a supplied date

  • Thread starter Thread starter RSH
  • Start date Start date
R

RSH

Hi,

Does anyone have a function that returns the day of week (Sun-Sat) from a
user supplied date (4/12/2006).

Thanks!
Ron
 
RSH said:
Hi,

Does anyone have a function that returns the day of week (Sun-Sat) from a
user supplied date (4/12/2006).

Thanks!
Ron

Dim DayOfWeek As String = DateTime.Parse("4/12/2006").DayOfWeek.ToString
 
dim myDate as DateTime = "4/12/2006"

console.writeline myDateTime.ToString("ddd")

Look at the help topic on "Custom DateTime Format Strings".
 
Back
Top