• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 176
  • Last Modified:

string to date conversion

how can I convert  a string into a date.
0
kuriti_mohan
Asked:
kuriti_mohan
  • 2
1 Solution
 
captainkirkCommented:
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
 
captainkirkCommented:
thanks...
0

Featured Post

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now