Login or Sign Up
Logging in...
Remember me
Log in
Or
Sign Up
Forgot password or user name?
Log in with
Search in titles only
Search in Visual Basic .NET only
Search
Advanced Search
Forums
BYTES
Product Launch
Updates
Developer Toolkit
Member List
Calendar
Today's Posts
Home
Forum
Topic
Visual Basic .NET
Convert date string into date object
Convert date string into date object
Collapse
This topic is closed.
X
X
Collapse
Posts
Latest Activity
Photos
Page
of
1
Filter
Time
All Time
Today
Last Week
Last Month
Show
All
Discussions only
Photos only
Videos only
Links only
Polls only
Events only
Filtered by:
Clear All
new posts
Previous
template
Next
Tony B
#1
Convert date string into date object
Apr 7 '08, 01:05 PM
I'm looking to convert a string in "dd/MM/yy" format into a date object. How
do I go about this ?
Armin Zingler
#2
Apr 7 '08, 02:05 PM
Re: Convert date string into date object
"Tony B" <tonyb@imagepro c.comschrieb
I'm looking to convert a string in "dd/MM/yy" format into a date
object. How do I go about this ?
A look in the docs reveals:
http://msdn2.microsoft.com/en-us/library/b4w53z0y.aspx
Armin
Comment
Post
Cancel
Cor Ligthert[MVP]
#3
Apr 8 '08, 04:15 AM
Re: Convert date string into date object
Tony,
As you are in the part of the world where an European language is spoken not
Russian or Swedish and not in the USA, then you can simple try the very
simple optimized .Net command
\\\
dim myDate = CDate(31/12/2008)
///
for older versions than 2008
dim mydate as DateTime = CDate(31/12/2008)
Cor
Comment
Post
Cancel
rowe_newsgroups
#4
Apr 8 '08, 11:15 AM
Re: Convert date string into date object
On Apr 7, 8:53 am, "Tony B" <to...@imagepro c.comwrote:
I'm looking to convert a string in "dd/MM/yy" format into a date object. How
do I go about this ?
Intellisense is your friend.
You mention you want to Parse a string into a DateTime, so how about
:
DateTime.Parse( ...)
Thanks,
Seth Rowe [MVP]
Comment
Post
Cancel
Herfried K. Wagner [MVP]
#5
Apr 10 '08, 12:25 AM
Re: Convert date string into date object
"Tony B" <tonyb@imagepro c.comschrieb:
I'm looking to convert a string in "dd/MM/yy" format into a date object.
How do I go about this ?
'DateTime.Parse Exact' + format string, if the date is always in the same
format regardless of the system's date/time format settings.
--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://dotnet.mvps.org/dotnet/faqs/>
Comment
Post
Cancel
Previous
template
Next
Working...
OK
OK
Cancel
👍
👎
☕
Comment