Solved

string to date conversion

Posted on 2000-05-17
2
154 Views
Last Modified: 2013-11-20
how can I convert  a string into a date.
0
Comment
Question by:kuriti_mohan
  • 2
2 Comments
 
LVL 4

Accepted Solution

by:
captainkirk earned 25 total points
ID: 2817891
COleDateTime date();
CString csDate = "17 May 2000";
// other formats:
// "8:30:00"
// "20:30:00"
// "January 25, 1996 8:30:00"
// "8:30:00 Jan. 25, 1996"
// "1/25/1996 8:30:00"  always specify the full year,
// even in a 'short date' format

date.ParseDateTime(csDate);
0
 
LVL 4

Expert Comment

by:captainkirk
ID: 2818785
thanks...
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Introduction: Hints for the grid button.  Nested classes, templated collections.  Squash that darned bug! Continuing from the sixth article about sudoku.   Open the project in visual studio. First we will finish with the SUD_SETVALUE messa…
Introduction: Dialogs (1) modal - maintaining the database. Continuing from the ninth article about sudoku.   You might have heard of modal and modeless dialogs.  Here with this Sudoku application will we use one of each type: a modal dialog …
This video will show you how to get GIT to work in Eclipse.   It will walk you through how to install the EGit plugin in eclipse and how to checkout an existing repository.
Many functions in Excel can make decisions. The most simple of these is the IF function: it returns a value depending on whether a condition you describe is true or false. Once you get the hang of using the IF function, you will find it easier to us…

863 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

26 Experts available now in Live!

Get 1:1 Help Now