Advertisement
If you have a new account but are having problems posting or verifying your account, please email us on hello@boards.ie for help. Thanks :)
Hello all! Please ensure that you are posting a new thread or question in the appropriate forum. The Feedback forum is overwhelmed with questions that are having to be moved elsewhere. If you need help to verify your account contact hello@boards.ie

Formatting Date/Time in C

Options
  • 02-04-2012 8:49pm
    #1
    Registered Users Posts: 154 ✭✭


    I'm doing a small project which takes a virtual GPS data string (GPRMS) and parses the data.
    Once I have done this one the data for date is in this format "ddmmyy".

    I've spent most of the day trying to figure out how to change that into say "dd/mm/yyyy" or even better "02 April 2012" so I can send this to my LCD screen. I am pretty new to programming in C but I'm getting better. Anybody who knows how do this in C, I would appreciate if you could share with me how! I've been going round in circles and this seems like such a simple task (if you know how!) :)


Comments

Advertisement