I'm not sure I understood. But anyhow, here are some
ideas:
CDateTimeCtrl::SetDate(COleDateTime date)
CDateTimeCtrl::SetTime(COleDateTime time)
COleDateTime::SetStatus(COleDateTime::null) //To indicate
that no date/time is set
COleDateTime::GetStatus() //To check whether date/time is
set
If the date (or time) is already saved, you can set the
date (or time) of your CDateTimeCtrl object to
COleDateTime::null, then set its format to blank it out.
Hope this will help.
Geo
-----Original Message-----
I would like the user to have the ability to blank out a
date that was
already saved in a previous edit session.
Post by GeoHi again,
SetFormat(" ") controls only the way the CDateTimeCtrl
is
Post by Geodisplayed. The date (and time) will still exist.
As for your question, it is not clear what is it that
you
Post by Geowant to do!
Geo
-----Original Message-----
Ok, I am able to detect the check box being unchecked
in
Post by Geothe date field and
I call SetFormat(" ") which blanks out the date text.
But when I call
GetTime(m_dtPurchaseDate) it still has my date in
it. I
Post by Geotry using SetTime("
") and the compiler doesn't like that line.
.
.