I tried to convert a string to date in perl, but get error.
use strict; use warnings; use DateTime; use Date::Manip; my $date = ParseDate(\"20111121\"); p
From the module documentation: This module does not parse dates
You need to add code such as suggested in I printed a date with strftime, how do I parse it again? to convert from a string to a date time object.