in reply to Re^2: My script is working fine on linux but it's not working on the Windowsin thread My script is working fine on linux but it's not working on the Windows
Instead of relying on an external date program, consider looking at localtime.