1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

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

Discussion in 'C' started by rohegde, Oct 15, 2012.

  1. rohegde

    rohegde New Member

    Joined:
    Jul 22, 2010
    Messages:
    6
    Likes Received:
    0
    Trophy Points:
    0
    Occupation:
    student
    Location:
    bangalore
    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
     
  2. xpi0t0s

    xpi0t0s Mentor

    Joined:
    Aug 6, 2004
    Messages:
    3,012
    Likes Received:
    203
    Trophy Points:
    0
    Occupation:
    Senior Support Engineer
    Location:
    England
    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 likes this.
  3. rohegde

    rohegde New Member

    Joined:
    Jul 22, 2010
    Messages:
    6
    Likes Received:
    0
    Trophy Points:
    0
    Occupation:
    student
    Location:
    bangalore
    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
     
  4. rohegde

    rohegde New Member

    Joined:
    Jul 22, 2010
    Messages:
    6
    Likes Received:
    0
    Trophy Points:
    0
    Occupation:
    student
    Location:
    bangalore
    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
     
  5. xpi0t0s

    xpi0t0s Mentor

    Joined:
    Aug 6, 2004
    Messages:
    3,012
    Likes Received:
    203
    Trophy Points:
    0
    Occupation:
    Senior Support Engineer
    Location:
    England
    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.
     

Share This Page