Hello Suraj ,
I noticed that you were assigning a Date to a Datetime so I investigated.
I was able to replicate your issue and it occurs when you convert a Date to DateTime

You can avoid this by adding a time to your original date using the NewDateTime() function for example.
Hope it helps!
Paulo Rosário