Click to See Complete Forum and Search --> : Date
cyseng10
June 28th, 2001, 08:31 PM
how to i write a code for get the day of the date where i enter date but i want to know which day is that.
example, i enter 29/06/2001 then i can gee the day is FRIDAY.
Regards,
Wilson Chai
Tower
June 28th, 2001, 09:01 PM
WeekDay = Format(YourDate, "dddd")
Robert Moy
June 28th, 2001, 09:07 PM
Hello Wilson:
You can this code:
days = Format(Text2.Text, "dddd") 'dddd will give you day
Text1.Text = days
Good Luck
Please send back a reply
Thank you
cyseng10
June 28th, 2001, 09:13 PM
days = Format(Text2.Text, "dddd") 'dddd will give you day
Text1.Text = days
dddd is what day is that ? sunday... or is given set by us and not by system
Regards,
Wilson Chai
Tower
June 28th, 2001, 09:33 PM
Format(Text2.Text, "dddd", vbMonday)
but if you not set 3 parameter, used system default
Robert Moy
June 29th, 2001, 06:08 PM
Hello:
Text2.text is your input and 'dddd' is the format that translate Text2.text into the day you want. For example, if you put into Text2.text: 25/06/2001, you will get Monday.
I hope this answers your question.
Robert Moy
codeguru.com
Copyright Internet.com Inc., All Rights Reserved.