You can check for the validity of the input provided by the user for the date as whether the days dd is dd<=31 and if feb then dd<=29 and if feb and a leap year then dd<=28 And month<=12 and year yyyy should be a valid number .
On Thu, Jul 21, 2011 at 7:30 PM, rajeev bharshetty <[email protected]>wrote: > Given the date format as mm/dd/yyyy > > We can test for the inputs which violates the above input format for date > and check whether the program throws an error or not. > The output of the program can be validated for the above input format and > also the palindrome behaviour can be checked . > > > On Thu, Jul 21, 2011 at 7:24 PM, Aman Goyal <[email protected]>wrote: > >> Please specify the format of the date..! >> >> >> On Thu, Jul 21, 2011 at 3:28 PM, Radhika Renganathan < >> [email protected]> wrote: >> >>> Write test cases for a program which finds the next palindromic date >>> given a date. >>> >>> -- >>> .... radhika .. >>> >>> -- >>> You received this message because you are subscribed to the Google Groups >>> "Algorithm Geeks" group. >>> To post to this group, send email to [email protected]. >>> To unsubscribe from this group, send email to >>> [email protected]. >>> For more options, visit this group at >>> http://groups.google.com/group/algogeeks?hl=en. >>> >> >> -- >> You received this message because you are subscribed to the Google Groups >> "Algorithm Geeks" group. >> To post to this group, send email to [email protected]. >> To unsubscribe from this group, send email to >> [email protected]. >> For more options, visit this group at >> http://groups.google.com/group/algogeeks?hl=en. >> > > > > -- > Regards > Rajeev N B <http://www.opensourcemania.co.cc> > > -- Regards Rajeev N B <http://www.opensourcemania.co.cc> -- You received this message because you are subscribed to the Google Groups "Algorithm Geeks" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/algogeeks?hl=en.
