RTC date-time verification in Nextion HMI screens?

Hello friends,

Nextion says that if the date and time you set on their website are correct, rtc6 will return the day of week (from 0 to 6). it's fine here, but if the date or time is incorrect, I expect it to return a value outside the range 0 to 6.

But nextion returning the last correct value.
This does not help me to handling the error.

Is there an easy way to handling this error?

Thanks.

I think there is no other way out of this long way: