in reply to Re: convert month number to month name
in thread convert month number to month name
Shaveta_Chawla wants 8 to convert to 'Aug', so the code should really be:
>perl -wMstrict -le "my $months = 'JanFebMarAprMayJunJulSepAugOctNovDec'; my $month = 8; printf q{'%s'}, substr($months, $month*3, 3); " 'Aug'
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: convert month number to month name
by roboticus (Chancellor) on Aug 30, 2012 at 14:37 UTC | |
by AnomalousMonk (Archbishop) on Aug 30, 2012 at 14:53 UTC | |
|
Re^3: convert month number to month name
by Anonymous Monk on Aug 30, 2012 at 14:34 UTC |