Solved

CTime Question

Posted on 1998-06-14
1
211 Views
Last Modified: 2013-11-20
Hi!

I have a CTime object. I use Format method to display it in a dialog, using the current locale.
The user is able then to change it. The problem is how can I build the CTime object from the string, without taking care myself of locale?
For instance, Rogue Wave's class for time is able to build a time from a string, using locale.
CTime from Microsoft doesn't seem to be able to do so.

Thank you!

Andrei
0
Comment
Question by:olariua
1 Comment
 
LVL 23

Accepted Solution

by:
chensu earned 50 total points
ID: 1317948
Use COleDateTime instead. There is a member function COleDateTime::ParseDateTime.
0

Featured Post

Best Practices: Disaster Recovery Testing

Besides backup, any IT division should have a disaster recovery plan. You will find a few tips below relating to the development of such a plan and to what issues one should pay special attention in the course of backup planning.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
function returning CString in a regular win32 DLL 8 178
ADO Memory leak with DELPHI 2007 37 182
withoutTen challenge 14 122
"Black Box" Testing of Control System Software 2 52
Introduction: Ownerdraw of the grid button.  A singleton class implentation and usage. Continuing from the fifth article about sudoku.   Open the project in visual studio. Go to the class view – CGridButton should be visible as a class.  R…
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.
Microsoft Active Directory, the widely used IT infrastructure, is known for its high risk of credential theft. The best way to test your Active Directory’s vulnerabilities to pass-the-ticket, pass-the-hash, privilege escalation, and malware attacks …

809 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