Go4Expert

Go4Expert (http://www.go4expert.com/)
-   C (http://www.go4expert.com/forums/c/)
-   -   program that recognizes date of any formateven formats like "feb-2-2003" , "02-februa (http://www.go4expert.com/forums/program-recognizes-date-formateven-t29195/)

rohegde 15Oct2012 23:02

program that recognizes date of any formateven formats like "feb-2-2003" , "02-februa
 
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

xpi0t0s 16Oct2012 16:30

Re: program that recognizes date of any formateven formats like "feb-2-2003" , "02-fe
 
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 16Oct2012 20:57

Re: program that recognizes date of any formateven formats like "feb-2-2003" , "02-fe
 
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

rohegde 16Oct2012 20:58

Re: program that recognizes date of any formateven formats like "feb-2-2003" , "02-fe
 
as mentioned in the question its only 2-feb-2003 and feb-2-2003

xpi0t0s 16Oct2012 22:20

Re: program that recognizes date of any formateven formats like "feb-2-2003" , "02-fe
 
You want me just to write the code for you for free? Not going to happen. My mortgage doesn't pay itself.


All times are GMT +5.5. The time now is 00:03.