I am in a locale where the time is two hours ahead of GMT + 2. When I encode the date using the new GregorianCalendar (y, m, d, d, h, m, s) and then use DateTools.dateToString with DAY permission, I I get a day earlier.
Coding 12:00 midnight 1,1,1970 As a result, I get January 31 (22:00), which is clearly wrong. The problem is even worse because stringToDate does not return me the same number.
Apparently this monstrous design confusion.
What is the right way to compensate for this so that you can correctly find the date of birth.
thanks
source share