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

Light Poster
15Oct2012,23:02   #1
rohegde's Avatar
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
Mentor
16Oct2012,16:30   #2
xpi0t0s's Avatar
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 likes this
Light Poster
16Oct2012,20:57   #3
rohegde's Avatar
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
Light Poster
16Oct2012,20:58   #4
rohegde's Avatar
as mentioned in the question its only 2-feb-2003 and feb-2-2003
Mentor
16Oct2012,22:20   #5
xpi0t0s's Avatar
You want me just to write the code for you for free? Not going to happen. My mortgage doesn't pay itself.