Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

String to CTime conversion 1

Status
Not open for further replies.

SteveD73

Programmer
Jan 5, 2001
109
GB
Hi

How can I convert a value in a rich text box into a CTime value? Also is it possible to force the user to enter a time value?

Thanks
 
Yes it is possible to force the user to enter value say day, month and Year but you will have to validate.
See COleDateTime class for 32 bit and CTime class for 16 bit these classes are very simple easy to use.
 
To Add to my earlier entry You can also use controls provided by differnet Vendors or use Microsofts Date Time Picker control( MSCOMCT2.OCX) it comes with VC6.It also has good look and feel. Hope this helps
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top