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
program that recognizes date of any formateven formats like "feb-2-2003" , "02-februa
|
Light Poster
|
|
| 15Oct2012,23:02 | #1 |
|
Mentor
|
![]() |
| 16Oct2012,16:30 | #2 |
|
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 |
|
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 |
|
as mentioned in the question its only 2-feb-2003 and feb-2-2003
|
|
Mentor
|
![]() |
| 16Oct2012,22:20 | #5 |
|
You want me just to write the code for you for free? Not going to happen. My mortgage doesn't pay itself.
|

