|
-
June 28th, 2001, 08:31 PM
#1
Date
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
-
June 28th, 2001, 09:01 PM
#2
Re: Date
WeekDay = Format(YourDate, "dddd")
Andy Tower
-
June 28th, 2001, 09:07 PM
#3
Re: Date
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
-
June 28th, 2001, 09:13 PM
#4
Date
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
-
June 28th, 2001, 09:33 PM
#5
Re: Date
Format(Text2.Text, "dddd", vbMonday)
but if you not set 3 parameter, used system default
Andy Tower
-
June 29th, 2001, 06:08 PM
#6
Re: Date
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
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|