string to DATE conversion

Posted on 2000-01-25
Medium Priority
Last Modified: 2013-12-03
in c++ using windows api (not mfc)
i need to convert a string to a date, the string's format is according to the system format (dd/mm/yy or mm/dd/yy etc.)
Question by:hitai
  • 2
LVL 23

Accepted Solution

chensu earned 20 total points
ID: 2386022

Expert Comment

ID: 2386600
Chensu -
<VarDateFromStr> can you use this other than in Windows CE ?

I use a combination of getting the international info from the system.ini or registry - parsing the date (in format mm/dd/yy or any combination thereof) and then using GetLocaleInfo build the string to read something like "Fri 13 February 1999".

LVL 23

Expert Comment

ID: 2386688
DarrinE> <VarDateFromStr> can you use this other than in Windows CE ?

Yes, the MFC function COleDateTime::ParseDateTime uses it to do the job.

Featured Post

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say 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

This article shows how to make a Windows 7 gadget that extends its U/I with a flyout panel -- a window that pops out next to the gadget.  The example gadget shows several additional techniques:  How to automatically resize a gadget or flyout panel t…
This article describes how to add a user-defined command button to the Windows 7 Explorer toolbar.  In the previous article (http://www.experts-exchange.com/A_2172.html), we saw how to put the Delete button back there where it belongs.  "Delete" is …
This is Part 3 in a 3-part series on Experts Exchange to discuss error handling in VBA code written for Excel. Part 1 of this series discussed basic error handling code using VBA. http://www.experts-exchange.com/videos/1478/Excel-Error-Handlin…
How to fix display issue, screen flickering issue when I plug in power cord to the machine. Before I start explaining the solution lets check out once the issue how it looks like after I connect the power cord. most of you also have faced this…
Suggested Courses

593 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