Log in

View Full Version : Perl script on date format


dranjann
Mar 2, 2009, 10:10 AM
Hi all,

Need a help on this: I have a input txt file with pipe separated data as follows:
1001|000725806707|0|01/29/2012|||6|0|||
1001|000339308645|1|08/24/2010|||9|0|||

I need a perl script that will read this file and convert the date to 2012/01/29 00:00:00 format and write the data to a new file. Any help will be highly appreciated.
Regards, Dibya