get day from date

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hi,

I have a date entered by the user into an input box in the form dd/mm/yy. I
want to be able to tell if that date is on the weekend. Is there a
function/way to say if, for example, 10/10/04 = Sunday?

Many thanks in advance

Greg
 
If Weekday(CDate(ans),1) = vbSaturday Then
MsgBox "It's Saturday"
End If
 

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