?
Solved

string to date conversion

Posted on 2000-05-17
2
Medium Priority
?
167 Views
Last Modified: 2013-11-20
how can I convert  a string into a date.
0
Comment
Question by:kuriti_mohan
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
2 Comments
 
LVL 4

Accepted Solution

by:
captainkirk earned 100 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

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

Question has a verified solution.

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

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: Database storage, where is the exe actually on the disc? Playing a game selected randomly (how to generate random numbers).  Error trapping with try..catch to help the code run even if something goes wrong. Continuing from the seve…
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.
Monitoring a network: how to monitor network services and why? Michael Kulchisky, MCSE, MCSA, MCP, VTSP, VSP, CCSP outlines the philosophy behind service monitoring and why a handshake validation is critical in network monitoring. Software utilized …
Suggested Courses

764 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