Hi Shreyansh Chouksey,
If you want to use your date and time attribute in any of the custom logic, you need to set the time zone during the creation of your account. if you not done that, check your entity and turn of Localize time setting because it will use the time of your brower.
I hope it will be useful
A must read is this: https://docs.mendix.com/refguide/datetime-handling-faq/
If time is not of the importance you should always set the localize setting of a Date Time attribute to no then you do not have this problem.
Since all date times are stored as UTC you could create a hotfix routine that retrieves the localised field and then store that back after transformation to the correct date in a second non localized field.
Regards,
Ronald