Solved

CTime Question

Posted on 1998-06-14
1
212 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

Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

Question has a verified solution.

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

In this article, I'll describe -- and show pictures of -- some of the significant additions that have been made available to programmers in the MFC Feature Pack for Visual C++ 2008.  These same feature are in the MFC libraries that come with Visual …
Introduction: Dialogs (1) modal - maintaining the database. Continuing from the ninth article about sudoku.   You might have heard of modal and modeless dialogs.  Here with this Sudoku application will we use one of each type: a modal dialog …
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.
Two types of users will appreciate AOMEI Backupper Pro: 1 - Those with PCIe drives (and haven't found cloning software that works on them). 2 - Those who want a fast clone of their boot drive (no re-boots needed) and it can clone your drive wh…

820 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