This worked thanks, but where do i find this documentation for adding the functions on the expression for date and time(d) . Previously i had just provided as d in my expression field.
Usually using variable name is enough but in your case the variable is passed as string that is why you need to convert it to datetime so comparison can be evaluated.