|
web
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
Need to find day of week from a supplied dateHi,
Does anyone have a function that returns the day of week (Sun-Sat) from a user supplied date (4/12/2006). Thanks! Ron "RSH" <way_beyond_o***@yahoo.com> wrote in message news:uWos0NNMGHA.3196@TK2MSFTNGP09.phx.gbl... Dim DayOfWeek As String = DateTime.Parse("4/12/2006").DayOfWeek.ToString> Hi, > > Does anyone have a function that returns the day of week (Sun-Sat) from a > user supplied date (4/12/2006). > > Thanks! > Ron > > -- Al Reid Sorry...I meant to post this to the vb group...I need to do this in vb6
Thanks, Ron Show quoteHide quote "RSH" <way_beyond_o***@yahoo.com> wrote in message news:uWos0NNMGHA.3196@TK2MSFTNGP09.phx.gbl... > 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 myDate as DateTime = "4/12/2006"
console.writeline myDateTime.ToString("ddd") Look at the help topic on "Custom DateTime Format Strings". |
|||||||||||||||||||||||