467,880 Members | 1,135 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 467,880 developers. It's quick & easy.

How to enter a date with format mm/dd/yyyy

Hello! I'm a newbie in VB. Can someone please help me how to format my input date in mm/dd/yyyy? Example when I enter 11/16/2006 in the text box 11/16/020 will appear. Thank you.
Nov 16 '06 #1
  • viewed: 2125
Share:
11 Replies
1GB
Hello! I'm a newbie in VB. Can someone please help me how to format my input date in mm/dd/yyyy? Example when I enter 11/16/2006 in the text box 11/16/020 will appear. Thank you.
Hi. Are you saying that this is what is happenning or this is what you want to happen?
Nov 16 '06 #2
Expert 8TB
Hello! I'm a newbie in VB. Can someone please help me how to format my input date in mm/dd/yyyy? Example when I enter 11/16/2006 in the text box 11/16/020 will appear. Thank you.
How are you accepting the input? A textbox? Have you considered using a "masked textbox"? (I can't recall the official name of this control type.)
Nov 16 '06 #3
Hi. Are you saying that this is what is happenning or this is what you want to happen?
Hi! its what I want to happen. activation date = mm/dd/yyyy . Thank you for a quick reply.
Nov 16 '06 #4
How are you accepting the input? A textbox? Have you considered using a "masked textbox"? (I can't recall the official name of this control type.)
I'm accepting it in a textbox. Unfortuantely, i still don;t know how to masked it. Thanks.
Nov 16 '06 #5
Expert 8TB
I'm accepting it in a textbox. Unfortuantely, i still don;t know how to masked it. Thanks.
Can you show us the code which moves the value from the textbox to the date/time variable, or whetever you're placing it in?

Also, I don't know whether it will be much use or not, but the control I was referring to can be found under Project|Components as "Microsoft Masked Edit Control".
Nov 16 '06 #6
sashi
Expert 1GB
I'm accepting it in a textbox. Unfortuantely, i still don;t know how to masked it. Thanks.
Hi there,

Why not make things alot more easier by using VB Masked Control, you can save alot of valuable time. Good luck & take care.
Nov 16 '06 #7
Expert 8TB
Hi there,

Why not make things alot more easier by using VB Masked Control, you can save alot of valuable time. Good luck & take care.
Yes, it might be helpful. The datepicker control might be even better.

However, it sounds as though the real problem is not the input, but the conversion to a date value. That's why I asked to see the code.
Nov 16 '06 #8
Yes, it might be helpful. The datepicker control might be even better.

However, it sounds as though the real problem is not the input, but the conversion to a date value. That's why I asked to see the code.
I tried the Masked and its works fine but i'm trying to fix my tab index now. i think it got mixed up. Btw, killer42 i don't have a code yet to input the date. What I have is the textbox labeled as txt_activedate with the datasource pointed to an access database.
Nov 16 '06 #9
I tried the Masked and its works fine but i'm trying to fix my tab index now. i think it got mixed up. Btw, killer42 i don't have a code yet to input the date. What I have is the textbox labeled as txt_activedate with the datasource pointed to an access database.

Yehey!! maskEd Box is now working in my input date format... tab index was also fixed. Thanks everyone!! :0)
Nov 16 '06 #10
Expert 8TB
I tried the Masked and its works fine but i'm trying to fix my tab index now. i think it got mixed up. Btw, killer42 i don't have a code yet to input the date. What I have is the textbox labeled as txt_activedate with the datasource pointed to an access database.
Cool!

Let us know if you need any more help.
Nov 16 '06 #11
Cool!

Let us know if you need any more help.
Yes, i will definitely seek your help again.. you guys are so cool! that was quick i learned from you a lot... till next time.... Thanks very much :)
Nov 16 '06 #12

Post your reply

Sign in to post your reply or Sign up for a free account.

Similar topics

8 posts views Thread by Gerrit Holl | last post: by
4 posts views Thread by Richard Hollenbeck | last post: by
6 posts views Thread by Dario Di Bella | last post: by
5 posts views Thread by Macca | last post: by
12 posts views Thread by Assimalyst | last post: by
9 posts views Thread by Alok yadav | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.