Hi
When you set the month value for the calendar, it starts from 0.
In my opinion, if it starts from 1, it will help more...
Exp:
fun main() {
val calendarPrimary = CalendarFactory.newInstance(CalendarType.CIVIL)
calendarPrimary.set(year = 2023, month = 8, dayOfMonth = 17)
val millis = calendarPrimary.timeInMillis
println(millis)
val calendarSecondary = CalendarFactory.newInstance(type = CalendarType.CIVIL)
calendarSecondary.timeInMillis = millis
println(calendarSecondary.shortDateString)
}
Out :
1694933393081
2023/09/17
(23, 9, 17)
Finally, thanks for PrimeCalendar ❤
Hi
When you set the month value for the calendar, it starts from 0.
In my opinion, if it starts from 1, it will help more...
Exp:
fun main() {
val calendarPrimary = CalendarFactory.newInstance(CalendarType.CIVIL)
calendarPrimary.set(year = 2023, month = 8, dayOfMonth = 17)
}
Out :
1694933393081
2023/09/17
(23, 9, 17)
Finally, thanks for PrimeCalendar ❤