Login or Sign Up
Logging in...
Remember me
Log in
Or
Sign Up
Forgot password or user name?
Log in with
Search in titles only
Search in C only
Search
Advanced Search
Forums
BYTES
Product Launch
Updates
Developer Toolkit
Today's Posts
Member List
Calendar
Home
Forum
Topic
C
converting string to date in c++
Collapse
X
Collapse
Posts
Latest Activity
Photos
Page
of
1
Filter
Time
All Time
Today
Last Week
Last Month
Show
All
Discussions only
Photos only
Videos only
Links only
Polls only
Events only
Filtered by:
Clear All
new posts
Previous
template
Next
kalpana d
New Member
Join Date:
Mar 2012
Posts:
1
#1
converting string to date in c++
Mar 19 '12, 02:42 PM
how to convert from string to date in c++?
Example: 17 mar 2012 to 17/03/2012
whodgson
Contributor
Join Date:
Jan 2007
Posts:
542
#2
Mar 20 '12, 03:39 AM
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
Post
Cancel
Previous
template
Next
Working...
Yes
No
OK
OK
Cancel
👍
👎
☕
Comment