 <p>You can use <code>wmic</code> command to get the current Date and time without getting affected by regional settings.</p> <pre><code>@echo off SETLOCAL EnableDelayedExpansion for /f "skip=1 tokens=1-6 delims= " %%a in ('wmic path Win32_LocalTime Get Day^,Hour^,Minute^,Month^,Second^,Year /Format:table') do ( IF NOT "%%~f"=="" ( set /a FormattedDate=10000 * %%f + 100 * %%d + %%a set FormattedDate=!FormattedDate:~0,4!-!FormattedDate:~-4,2!-!FormattedDate:~-2,2! set /a FormattedTime=%%b * 10000 + %%c * 100 + %%e set FormattedTime=!FormattedTime:~0,2!:!FormattedTime:~-4,2!:!FormattedTime:~-2,2! ) ) echo !FormattedDate!T!FormattedTime!Z &lt;--Assuming UTC timezone is used PAUSE </code></pre> <p>Here is the output after executing the script:</p> <pre><code>C:\&gt;dateTime.bat 2013-01-25T22:11:40Z Press any key to continue... </code></pre> <p>Hope it helps :)</p>