View Problem

Parse a date and time from a string

Given the string "2008-05-06 13:29", parse it as a date representing 6th March, 2008 1:29:00pm in the local time zone.
ExpandDiskEdit
php
echo date("jS F, Y g:i:sa", strtotime("2008-05-06 13:29")); // small version
ExpandDiskEdit
erlang
% AFAIK, no datetime-parsing library exists; 'parse_to_datetime' is a simplistic, problem-specific hack
LocalDateTime = erlang:universaltime_to_localtime(parse_to_datetime("2008-05-06 13:29:34")),

Submit a new solution for php or erlang
There are 18 other solutions in additional languages (clojure, cpp, csharp, fantom ...)