[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now

x
?
Solved

string to date conversion

Posted on 2000-05-17
2
Medium Priority
?
174 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 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

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Introduction: Displaying information on the statusbar.   Continuing from the third article about sudoku.   Open the project in visual studio. Status bar – let’s display the timestamp there.  We need to get the timestamp from the document s…
If you use Adobe Reader X it is possible you can't open OLE PDF documents in the standard. The reason is the 'save box mode' in adobe reader X. Many people think the protected Mode of adobe reader x is only to stop the write access. But this fe…
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.
this video summaries big data hadoop online training demo (http://onlineitguru.com/big-data-hadoop-online-training-placement.html) , and covers basics in big data hadoop .
Suggested Courses
Course of the Month19 days, 15 hours left to enroll

872 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