I think the best solution is not to allow free format of date but to
provide separate fields for each part. datetime_select can do this
for you automatically.
If you really need to do it however, then provided you know what the
format is then use strptime to parse it.
Colin