converting string to date in c++

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • kalpana d
    New Member
    • Mar 2012
    • 1

    converting string to date in c++

    how to convert from string to date in c++?
    Example: 17 mar 2012 to 17/03/2012
  • whodgson
    Contributor
    • Jan 2007
    • 542

    #2
    maybe,
    convert the months to integers using enum type.
    now convert days and years to integers using atoi() function
    now print the 3 integers separated by two "/".

    Comment

    Working...