By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
454,703 Members | 1,400 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 454,703 IT Pros & Developers. It's quick & easy.

Need to find day of week from a supplied date

P: n/a
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
Feb 13 '06 #1
Share this Question
Share on Google+
3 Replies


P: n/a
"RSH" <wa*************@yahoo.com> wrote in message news:uW**************@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 DayOfWeek As String = DateTime.Parse("4/12/2006").DayOfWeek.ToString

--

Al Reid
Feb 13 '06 #2

P: n/a
RSH
Sorry...I meant to post this to the vb group...I need to do this in vb6

Thanks,
Ron
"RSH" <wa*************@yahoo.com> wrote in message
news:uW**************@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

Feb 13 '06 #3

P: n/a
dim myDate as DateTime = "4/12/2006"

console.writeline myDateTime.ToString("ddd")

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

Feb 13 '06 #4

This discussion thread is closed

Replies have been disabled for this discussion.