First off, I think, the arguments ~0,2 represent the positions and are dependant on the setting. Please check this out.
Secondly, > is a redirection symbol.
On XP, the batch command sysntax defines variables for string comparison. Help if at the comand prompt will give it to you.
Here is a sample batch file:
***********************************
@echo off
REM echo %%date:~0,2%
SET aa=%date:~0,2%
echo %aa%
If %aa% GTR 08 echo Greater than 8
If %aa% LEQ 07 echo Less than or equal to 7
echo.
If %aa% GTR 04 echo Greater than 4
If %aa% LEQ 03 echo Less than or equal to 3
***********************************
End