-
December 20th, 2003, 10:59 PM
#1
COleDateTime <---> DATE
Hi,
anyone knows how to convert from a COleDateTime to a DATE one, and vice versa....
Thanks,
me
My history: QB->VB->TC++->VB->VC++->VC#
-
December 21st, 2003, 12:28 AM
#2
You should be able to use operator DATE to cast a COleDateTime to a DATE, and use operator = to set a COleDateTime to a DATE.
COleDateTime cdt1, cdt2;
DATE dt;
cdt1 = COleDateTime::GetCurrentTime();
dt = (DATE) cdt1;
cdt2 = dt;
-
December 22nd, 2003, 05:08 PM
#3
Thanks, it's not difficult....
My history: QB->VB->TC++->VB->VC++->VC#
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|