expr: raise error on lossy datetime conversion