Hi Naresh,
By seeing at your query , it seems you have to understand the actual reason, why in the postgresql , the division has been done.
if you do write the below SQL, it will serve the purpose, but while you comparing the same again with date doesnot makes sense.
Try to understand the actual need of that division and if that is not at all avoidable, try as below.
SELECT TO_INTEGER(TO_TIMESTAMP('04-12-2015', 'MM-DD-YYYY')) "to date" FROM DUMMY;
It doesnot makes any sense , you divide the date value with 1000, or compare the String with Date, without even comparing.
Regards,
Chandan