|
-
Dec 14th, 2001, 06:36 AM
#1
Thread Starter
Fanatic Member
convert to date dd,mm,yyyy
I need to convert this line to date format dd,mm,yyyy
Whats the correct syntax?
shipdt = Mid (sstringtobreakdown, 23, 8)
-
Dec 14th, 2001, 06:37 AM
#2
Addicted Member
Use the format() function
example:
format (sString, "mmddyyyy")
-
Dec 14th, 2001, 07:01 AM
#3
VB Code:
shipdt = Format(shipdt, "dd/mm/yyyy")
-
Dec 14th, 2001, 07:20 AM
#4
Frenzied Member
What format is"shipdt" in?
If it is just an 8 char string (eg 23022001)this might help:
http://www.vbforums.com/showthread.p...hreadid=125957
-
Dec 14th, 2001, 07:28 AM
#5
Bouncy Member
if it is an 8 char string try this:
Code:
Dim temp As String
Temp = Mid (sstringtobreakdown, 23, 8)
shipdt = Left(Temp, 2) & "/" & Mid(Temp, 3, 2) & "/" & Right(Temp, 4)
-
Dec 14th, 2001, 07:30 AM
#6
Conquistador
Re: convert to date dd,mm,yyyy
Originally posted by gilly
I need to convert this line to date format dd,mm,yyyy
Whats the correct syntax?
shipdt = Mid (sstringtobreakdown, 23, 8)
i don't see where you're getting that from ?
-
Dec 14th, 2001, 07:32 AM
#7
Frenzied Member
Re: Re: convert to date dd,mm,yyyy
Originally posted by da_silvy
i don't see where you're getting that from ?
It's a long story
It started off in the ASP section.
-
Dec 14th, 2001, 07:39 AM
#8
Conquistador
ahh ok. not up to the asp forum yet,
i'm going to knock over 4000 in vbq&a then move onto others in search of more threads
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
|