Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change
 
PerlMonks  

Re: DateTime formatting problem

by PerlSufi (Friar)
on Apr 30, 2013 at 17:54 UTC ( #1031441=note: print w/replies, xml ) Need Help??


in reply to DateTime formatting problem

I found that changing
my $start_date = DateTime->today->subtract( months => 1); $start_date->strftime("%m%d%y");

to
my $start_date = DateTime->today->subtract( months => 1)->strftime("%m +%d%y");

worked..

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1031441]
help
Chatterbox?
[Eily]: I just wrote a oneliner to solve a (non perl) colleague's problem, and it worked on the first try
[Eily]: and he wasn't impressed
1nickt adds gingersnaps to the platter on the sideboard.

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











    Results (482 votes). Check out past polls.