OK so you use US date format.
The idea is to get yesterday's date, and the filedate, into YYYYMMDD format, i.e. numbers where a later date is always greater than an earlier one, then see if the filedate number is less than the yesterday's date number.
@echo off
setlocal
REM Get yesterday's date into yyyymmdd format
call :get_date
REM Strip leading zeros from possible octals and decrement the day
set /a mm=1%mm%-100, dd=1%dd%-101
if %dd% NEQ 0 goto :add_zeros
REM Today is the 1st of the month - decREMent the month
REM and set leap year check (ignoring centuries)
set /a mm-=1,ly=yy%%4
REM If today is 1 Jan, set date to 31st Dec
if %mm% EQU 0 (set /a dd=31, mm=12, yy-=1) else (
REM Calculate days in last month (by Frank Westlake)
set /a "dd=5546>>mm&1,dd+=30"
REM Special case for February
if %mm% EQU 2 if %ly% EQU 0 (set dd=29) else (set dd=28)
)
:add_zeros
if %dd% LSS 10 set dd=0%dd%
if %mm% LSS 10 set mm=0%mm%
set /a yestdate=%yy%%mm%%dd%
for /f %%a in ('dir /b job.txt') do set fd=%%~ta
REM get filedate into yyyymmdd format
REM This is for US date format i.e. mm/dd/yyyy
set mm=%fd:~0,2%
set dd=%fd:~3,2%
set yy=%fd:~6,4%
set /a filedate=%yy%%mm%%dd%
IF %filedate% LSS %yestdate% del jobs.txt
goto next
REM ------------------------------------------------------------------
:Get_Date
REM ------------------------------------------------------------------
REM Generic date parser
REM Sets %dd% (01-31), %mm% (01-12) & %yy% (4 digit)
if "%date%A" LSS "A" (set toks=1-3) else (set toks=2-4)
for /f "skip=1 tokens=2-4 delims=(-)" %%a in ('echo:^|date') do (
for /f "tokens=%toks% delims=.-/ " %%d in ('date/t') do (
set %%a=%%d
set %%b=%%e
set %%c=%%f
set toks=
)
)
if %yy% LSS 100 set yy=20%yy%
goto :eof
:next