-
February 8th, 2010, 03:40 AM
#1
String convert in Date
Hello Everybody,
I have a CString and it is like "[CPLM]......27.12.1999" and I would like to convert string (27.12.1999) in Date , because I need 27.12.1999 for some calculations.
I have just tryed to work with ParseDateTime(), but it did not worked.
If you could help me , I will be very happy
thank you very much
-
February 8th, 2010, 03:57 AM
#2
Re: String convert in Date
COleDateTime::ParseDateTime always worked for me.
Victor Nijegorodov
-
February 8th, 2010, 04:10 AM
#3
Re: String convert in Date
Hi,
One thing to watch out for is the locale, your example isn't using US date format. From MSDN "Note that the locale ID will also affect whether the string format is acceptable for conversion to a date/time value"
Alan
Tags for this Thread
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
|