0%

difference of Calendar day_of_year and day_of_month

for adding it really makes no difference, but this

1
2
3
Calendar c = Calendar.getInstance();
System.out.println(c.get(Calendar.DAY_OF_MONTH));
System.out.println(c.get(Calendar.DAY_OF_YEAR));

prints

1
2
28
363

Welcome to my other publishing channels