How do I convert my return using DateTime from:
This is my date:2011-11-26T20:11:06 to This is my date:20111126
This is my date:2011-11-26T20:11:06
This is my date:20111126
Using this existin
Just add ->ymd("") on the second line. The parameter "" is the separator, which you chose to be an empty string.
""
use DateTime qw(); my $dt3 = DateTime->now->subtract(days => 1)->ymd(""); print "This is my date:$dt3\n"