473,396 Members | 2,024 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

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
11 2327
willakawill
1,646 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
Killer42
8,435 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
Killer42
8,435 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
1,754 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
Killer42
8,435 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
Killer42
8,435 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

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

Similar topics

8
by: Gerrit Holl | last post by:
Posted with permission from the author. I have some comments on this PEP, see the (coming) followup to this message. PEP: 321 Title: Date/Time Parsing and Formatting Version: $Revision: 1.3 $...
3
by: Alistair | last post by:
it's the idiot with his query strings again...."yippeee" I hear aaron shout this time the problem is with a date format query I have a query string thus strSQL = "SELECT * FROM users where...
1
by: jt | last post by:
I posted this yesterday, but I am not seeing this out yet: I am having problems with updating a date field in a certain format. The data is stored in an Oracle database. The date is...
4
by: Richard Hollenbeck | last post by:
I'm trying to write some code that will convert any of the most popular standard date formats twice in to something like "dd Mmm yyyy" (i.e. 08 Jan 1908) and compare the first with the second and...
6
by: Dario Di Bella | last post by:
Hi all, we have the following urgent issue affecting our development team. Initially we had one particular workstation that failed executing queries on a DB2 database, raising an invalid date...
5
by: Macca | last post by:
Hi, I have a table which has a date/time field. I am storing them as follows :- 01/01/2005 11:25 01/01/2005 19:44 02/01/2005 05:04
12
by: Assimalyst | last post by:
Hi, I have a working script that converts a dd/mm/yyyy text box date entry to yyyy/mm/dd and compares it to the current date, giving an error through an asp.net custom validator, it is as...
9
by: Alok yadav | last post by:
i am using a webservice in which a method is serach. i use this method which accept a argument of date type in dd/MM/yyyy formate. i have a textbox which accept the date from the user, when i...
17
by: Petyr David | last post by:
Just looking for the simplest. right now my perl script returns an error messge to the user if the date string is invalid. would like to do this before accessing the server. TX
10
by: ARC | last post by:
Hello all, General question for back-end database that has numerous date fields where the database will be used in regions that put the month first, and regions that do not. Should I save a...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.