Ok, glad it's working.
If the N component of the date wasn't working, that would cause trouble.
I hadn't used it before (since it's not something you need very much, the day of the week as a number), but sounded like it would work. It may very well have to do with the version of PHP.