I have an app which manipulates a lot of dates (reading from a database).
It uses the Format() member function of COleDateTime extensively.
During a recent profiling session, it became apparent that a large amount of my app's time is spent in the Format() function.
Here's how I'm using it:
Simple, yes. But very expensive in terms of CPU time.Code:COleDateTime date1 = x.Format("%m/%d/%Y");
Does anyone have a faster way to do this?




Reply With Quote