@echo off
set DateIn=01/01/2010
set DateNow=%DATE:~-4%%DATE:~-10,2%%DATE:~-7,2%
set DateCheck=%DateIn:~-4%%DateIn:~-10,2%%DateIn:~-7,2%
if %DateCheck% GTR %DateNow% echo Greater Than
if %DateCheck% LSS %DateNow% echo Less Than
if %DateCheck% EQU %DateNow% echo Equal
|