Sorry, I wasnt as clear as I could have been - I just pasted an example from a bit of code Im working on.
Change your line
if /i "%newdateP%" GTR "%oldprice%" (goto update)
to
if /i "%newdateP:~6,4%%newdateP:~3,2%%newdateP:~0,2%" GTR "%oldprice:~6,4%%oldprice:~3,2%%oldprice:~0,2%" (goto update)
note - its is just 1 line above, ignore the wrapping on the screen
Graham