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.
11 2327
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?
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.)
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.
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.
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".
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.
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.
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.
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)
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.
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 :)
Sign in to post your reply or Sign up for a free account.
Similar topics
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 $...
|
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...
|
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...
|
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...
|
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...
|
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
|
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...
|
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...
|
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
|
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...
|
by: Charles Arthur |
last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
|
by: nemocccc |
last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
|
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...
|
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...
|
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,...
|
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...
|
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,...
|
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...
|
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...
| |