Beefy Boxes and Bandwidth Generously Provided by pair Networks
P is for Practical

Re: convert month number to month name

by Shaveta_Chawla (Sexton)
on Aug 30, 2012 at 09:53 UTC ( #990703=note: print w/replies, xml ) Need Help??

in reply to convert month number to month name

Another method which can be used is
$YEAR=`date "+%Y"`; #for year $month=`date "+%b"`; #convert numeric month to month name $DAY=`date "+%d"`; #for date

Replies are listed 'Best First'.
Re^2: convert month number to month name
by Anonymous Monk on Aug 30, 2012 at 12:57 UTC

    ... which fails in a Windows-environment. There the command date expects a new date as user-input.

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://990703]
[Tanktalus]: Problem is, it's a test for another monk - as in, another monk letting me interview for his company :)
[Tanktalus]: He might see me here... :D
[Discipulus]: it's me? ;=)
[marioroy]: Lady_Aleena could it be a quoting issue? I just tried find with -exec on the command line. find . -name "*.pl" -exec ls -l {} \;
[Tanktalus]: No, I know who he is, nice try. But if you're hiring, let me know :)
[Tanktalus]: Lady_Aleena: yeah, I can reproduce your issue, it's confusing alright :)
[Tanktalus]: I'm sure it'll make perfect sense once we figure it out :)
[Lady_Aleena]: marioroy, not a quoting error. I can't run it on the command line. It is when I put it in qx() where it falls apart.
Discipulus hired to use Perl in Eataly? haired maybe
[choroba]: We're hiring

How do I use this? | Other CB clients
Other Users?
Others meditating upon the Monastery: (10)
As of 2017-04-23 20:04 GMT
Find Nodes?
    Voting Booth?
    I'm a fool:

    Results (432 votes). Check out past polls.