Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
Thank you!!/usr/bin/perl use strict; use warnings; use Time::Piece; use Time::Seconds; my $t = Time::Piece->new(); # Date 3 weeks from today's date my $future_date = $t + ONE_WEEK * 3; my $n_date = $future_date->mdy; my $converted_date = $t->strptime($n_date, '%B %d, $Y'); print " New Date = $n_date\n"; # December 03, 2014 print " Converted Date = $converted_date\n";
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Convert month number to month name
by choroba (Cardinal) on Nov 12, 2014 at 15:04 UTC | |
|
Re: Convert month number to month name
by toolic (Bishop) on Nov 12, 2014 at 15:13 UTC | |
by Anonymous Monk on Nov 12, 2014 at 15:18 UTC |