![]() |
| ||
| C++ / MFC Date Validation Hi, i just need to know is there any method in MFC / C++ which will do the validation for the entered date. ie if the date 12/11/2008 is given as input it should return saying the date is valid.i hope there exsists some standard function. it should also check for leap leap year,and wrong date such as 31/11/2008 etc. thanks in advance. |
| ||
| Re: C++ / MFC Date Validation you could try the parsedate() member of COleDateTime: if (!COleDateTime::ParseDateTime("12/11/2008")I don't have MFC anymore, so I can't test it, but I'm sure it works somewhat like that. If this doesn't work you should have a look at the wxDateTime object from wxWidgets. |
| ||
| Re: C++ / MFC Date Validation Thanks |
| ||
| Re: C++ / MFC Date Validation C works in MFC right? (sprintf/sscanf) int main(int argc, char*argv[]) |
| ||
| Re: C++ / MFC Date Validation Stop spamming old threads, you asshole! |
| ||
| Re: C++ / MFC Date Validation @MosaicFuneral What are you talking about? Isn't this a CODE FORUM. So posting CODE on a CODE FORUM is okay right? Or did I miss the posting guidelines. |
| ||
| Re: C++ / MFC Date Validation >Or did I miss the posting guidelines. Yes you did. And it's appropriately titled "Read This Before Posting": http://www.daniweb.com/forums/thread78223.html |
| All times are GMT -4. The time now is 5:07 am. |
Forum system based on vBulletin Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
©2003 - 2009 DaniWeb® LLC