Parsing to DateTime

G

Gábor SEBESTYÉN

I have to parse input string to DateTime in format "%Y.%m.%d". How =20
can I do it? DateTime.parse() didn't recognize.
Thanks,

G=E1bor
 
J

James Edward Gray II

I have to parse input string to DateTime in format "%Y.%m.%d". How =20
can I do it? DateTime.parse() didn't recognize.

You're looking for Date.strptime().

Hope that helps.

James Edward Gray II
 
G

Gábor SEBESTYÉN

--Apple-Mail-1--388125518
Content-Transfer-Encoding: quoted-printable
Content-Type: text/plain;
charset=ISO-8859-1;
format=flowed


You're looking for Date.strptime().
That was the answer. Thanks!

G=E1bor


--Apple-Mail-1--388125518--
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,175
Messages
2,570,946
Members
47,497
Latest member
PilarLumpk

Latest Threads

Top