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
 
Sorry...I meant to post this to the vb group...I need to do this in vb6

Thanks,
Ron
 
dim myDate as DateTime = "4/12/2006"

console.writeline myDateTime.ToString("ddd")

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

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top