passing correct date in sql trigger