Also...Maybe it is something with the @DATE format that JT doesnt like?

$date=@DATE

Does it work without an error if your change it to...

$date='TODAY'

Like the first example...