ColeDateTime::GetCurrentDate, ::RemoveHrMinSec??? Need such functions
Hi Everybody,
I'm working with COleDateTime Class and I need to do two things:
1) Get the current date only, with out any Hrs, Min, Sec Value,
2) Clear the Hrs, Min, Sec of an existing COleDateTime Value.
Does anyone know how to do that?
At the time I had to write my own DDX function to strip the hrs, min, sec. I could write a function, but I'm surprised that Microsoft doesn't supply such member functions. ... Maybe there is something I'm missing or an operator out there that I don't know about.
Vlad - MS MVP [2007 - 2012] - www.FeinSoftware.com
Convenience and productivity tools for Microsoft Visual Studio: FeinViewer - an integrated GDI objects viewer for Visual C++ Debugger, and more...
Re: ColeDateTime::GetCurrentDate, ::RemoveHrMinSec??? Need such functions
Originally Posted by VictorN
I'd just create my own class (maybe derived from COleDateTime) and implement all these features...
That's what I figured, too bad there are no member functions provided by the framework for these functions. The do come in handy when you are just working with date values and don't want to do extra programiing to remove time info.
Re: ColeDateTime::GetCurrentDate, ::RemoveHrMinSec??? Need such functions
It's very hard (if just possible!) to implement the methods for all cases someone could need in the mean time and in the future...
And I always thought that implement a couple of missed methods yourself is much faster than discuss about such a problem for a long time...
Bookmarks