Question
Cast Invalid Error
Hi All,
I found some strange behavior with the below expressions related to date and time.
{
/* All these worked */
now() + second() * 62,
now() + minute() * 5,
now() + hour() * 5,
now() + day() * 5,
/* These didn't work */
now() + month() * 5,
now() + year() * 5
}
Can someone please explain why the last 2 statements don't work, and throw cast invalid error?
