NLS_LANG was not set properly and messed up the date formats. I fixed that, and all is well now.
Thanks
/Mohan