Date value is changing on assignment
Question

Hello,

Working on Reactive application.

I'm getting date value which is formed from text.



When I assign this value to another date variable or passing to another function function, one day is being reduced from here.


Please note there's no any operation happening during this.

Please advice how to handle this.


Thanks and Regards,

Suraj Borade

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

Thanks Paulo for figuring this out. Let me try that.

Let me know if it worked ;) 

It worked. Thanks

Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.