program that recognizes date of any formateven formats like "feb-2-2003" , "02-februa

rohegde's Avatar, Join Date: Jul 2010
Light Poster
program that recognizes date of any formateven formats like "feb-2-2003" , "02-february-2003" , mm/dd/yy ,dd/mm/yy, etc and display it as mm/dd/yy




can anybody write the code and post its very urgent preferebly in c
0
xpi0t0s's Avatar, Join Date: Aug 2004
Mentor
It's not difficult to write string parsing programs. How far have you got and where are you stuck? Do you understand the requirements?

If it is to recognise mm/dd/yy, dd/mm/yy and whatever you mean by "etc", how will it know what 05/06/07 means? That could be any one of six different dates: 5th June 2007, 5th July 2006, 6th May 2007, 6th July 2005, 7th May 2006, 7th July 2006.
rohegde like this
0
rohegde's Avatar, Join Date: Jul 2010
Light Poster
it is just given as a problem statement but i think its only general form of date format why dont you give the code for basic date type
0
rohegde's Avatar, Join Date: Jul 2010
Light Poster
as mentioned in the question its only 2-feb-2003 and feb-2-2003
0
xpi0t0s's Avatar, Join Date: Aug 2004
Mentor
You want me just to write the code for you for free? Not going to happen. My mortgage doesn't pay itself.