Hi All,
I am facing an issue with perl..
I have a perl script that executes the stored procedure and puts the data in a file. In stord proc we have one date column also. In table from which it is fetching the data, date is in the form "14/03/2010 00:00:00.000" (DD/MM/YYYY). But when the perl script is putting the data in the file it is writing that date column as "Mar 14 2010 00:00AM". Not sure why this conversion is happening!! Though we are not using convert functions anywhere. I want the date in the same format as it is in the table "14/03/2010 00:00:00:00".
The format of date is coming up as different in a file from what we have in table. I want it to be same as that of table.
While investigating, I also got to know that not only in perl, if we do simple isql for sybase and redirect the output to the file, date gets converted to 'Mar 14 2010 12:00AM' irespective of the format it is in the table.
What I am not getting is how unix/shell/perl script is converting the date themselves? and how do I keep it the way it is in table?