Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
Hi Monks!
I have date format like this: "01/09/2012" that is getting inserted into sql server, I am getting errors, I am trying to convert into a sql format, something like this:
Any idea on how I could do this?
Thanks!
I have date format like this: "01/09/2012" that is getting inserted into sql server, I am getting errors, I am trying to convert into a sql format, something like this:
... my $date = "01/09/2012"; $date = strftime '%Y-%m-%d %H:%M:%S', $date; print $date; ...
Any idea on how I could do this?
Thanks!
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Date Convert
by roboticus (Chancellor) on Jan 09, 2013 at 19:26 UTC | |
Re: Date Convert
by Anonymous Monk on Jan 09, 2013 at 20:42 UTC | |
by Anonymous Monk on Jan 09, 2013 at 20:50 UTC | |
by HelenCr (Monk) on Apr 19, 2013 at 13:26 UTC | |
Re: Date Convert
by mhearse (Chaplain) on Jan 09, 2013 at 21:34 UTC |
Back to
Seekers of Perl Wisdom