Regarding Date Issue

0
I have Save Data by Custom any Date Main Issue is Date Date Show Correct in Datagrid but in Bulit in database date save like Privious Date??
asked
2 answers
1

That is due to value of the date-attribute being saved in UTC. You are probably located east of Greenwich, making your local time a couple of hours ahead of UTC-time. If you are in India for example and you save your date-time attribute at a time when the UTC is still on the previous date due to the time-difference, than in the database, the date will be yesterday. If you then make that value show up in a datagrid and make it show only the date, than that date will be yesterday.

answered
0

Thank you Tim van Steenbergen !

answered