Try this code:

CDateTime dt;
dt.SetToCurrentDateTime();
CString strBefore = dt.FormatDateTime(true);
FrmCustomAlert(InfoAlert, strBefore, "", "");
dt += CDateTimeSpan(3, 0, 0, 0);
CString strAfter = dt.FormatDateTime(true);
FrmCustomAlert(InfoAlert, strAfter, "", "");

______________________________________________

Best regards,
Maks Pyatkovskiy


> -----Original Message-----
> From: [EMAIL PROTECTED]
[mailto:bounce-palm-dev-
> [EMAIL PROTECTED] On Behalf Of Rudy Folden
> Sent: Friday, April 04, 2003 7:44 PM
> To: Palm Developer Forum
> Subject: POL CDateTime and CDateTimeSpan questions
> 
> How can I update a date with a fixed number of days, then extract the
> correct DOW??  I am trying to use CDateTime and CDateTimeSpan and
can't
> get
> it to do what I want.
> 
> Rudy L. Folden
> 1503 Wayne St.
> Scottsboro, AL 35768
> 
> 
> --
> For information on using the Palm Developer Forums, or to unsubscribe,
> please see http://www.palmos.com/dev/support/forums/




-- 
For information on using the Palm Developer Forums, or to unsubscribe, please see 
http://www.palmos.com/dev/support/forums/

Reply via email to