|
-
Jan 12th, 2000, 05:35 PM
#1
Thread Starter
Hyperactive Member
Hi all,
in my text box the user enters a date value, normally, it could be
5-5-99.
i need it to be changed to 05/05/99..how do i do it..
Urgent..Answer ASAP.
Thanx.
Venkat.
------------------
[email protected]
ICQ: 45714766
http://venkat.iscool.net
-
Jan 12th, 2000, 05:42 PM
#2
Lively Member
Hi,
You can use the format function.
example
dim MyDate
Mydate = Now()
Mydate = Format(MyDate, "dd/mm/yy")
Msgbox MyDate
R@emdonck
-
Jan 12th, 2000, 06:02 PM
#3
Thread Starter
Hyperactive Member
Thanx..but it does not formats the date "5/5/99" to "05/05/99"
Any alternates.
------------------
[email protected]
ICQ: 45714766
http://venkat.iscool.net
-
Jan 12th, 2000, 09:46 PM
#4
Frenzied Member
Venkat
why are all your questions Urgent..Answer ASAP?
You must be very stressed!
debug.print Format("5-5-99", "dd/mm/yy")
the date format functions are dependant on the Regional settings so your output may be different to other peoples
------------------
Mark Sreeves
Analyst Programmer
[email protected]
A BMW Group Company
-
Jan 13th, 2000, 02:22 AM
#5
Lively Member
Hi,
What Mark wrote is true, because the code works on my PC.
My regional setting for short date = "d/MM/yy"
See ya
-
Jan 13th, 2000, 12:58 PM
#6
Thread Starter
Hyperactive Member
Hi Mark,
thats true..I used vb-world not only to learn but also as a helper to my project....My project leader is kinda person who is more concentrated in punctuality in finishing the work..If i do not get the thing done within the time, GOD..I will be sacked out..
Thanx man and thanx to R@emdonck.
Regards,
Venkat.
------------------
[email protected]
ICQ: 45714766
http://venkat.iscool.net
-
Jan 13th, 2000, 01:18 PM
#7
Hyperactive Member
Hi, there. This should work:
Format(MyDate, "DD/MM/yy")
Larisa
-
Jan 13th, 2000, 02:37 PM
#8
Thread Starter
Hyperactive Member
Hi people,
thanks and it worked after chaning the format of date in the control panel..
regards,
venkat. 
------------------
[email protected]
ICQ: 45714766
http://venkat.iscool.net
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
|