in reply to Date String Parsing
The sparse documentation doesn't ... [explain] what it would do in the circumstance of '02/01/03'.In the absence of more information about your intended usage, I wouldn't know what sort of advice to give. Are you processing text that has been collected "from the wild" and trying to identify/normalize all date references? (Very hard target with no complete solution -- some errors are inevitable.) Are you soliciting date strings from users via some sort of form submission and hoping to normalize their inputs? (Easily solved with appropriate design of the form.) Something else?
If a string like "02/03/04" is coming from who-knows-where, it is intrinsically ambiguous -- one can only hope that there is enough contextual information in the data surrounding it to allow a human to interpret it correctly (it might not even be a date). Asking for a perl script to get it right might be expecting too much.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Date String Parsing
by Limbic~Region (Chancellor) on Nov 27, 2007 at 20:30 UTC |