Copy this code and paste it in your HTML
calendar.setTime(trialTime);
// print out a bunch of interesting things
System.
out.
println("WEEK_OF_YEAR: " + calendar.
get(Calendar.
WEEK_OF_YEAR));
System.
out.
println("WEEK_OF_MONTH: " + calendar.
get(Calendar.
WEEK_OF_MONTH));
System.
out.
println("DAY_OF_MONTH: " + calendar.
get(Calendar.
DAY_OF_MONTH));
System.
out.
println("DAY_OF_YEAR: " + calendar.
get(Calendar.
DAY_OF_YEAR));
System.
out.
println("DAY_OF_WEEK: " + calendar.
get(Calendar.
DAY_OF_WEEK));
System.
out.
println("DAY_OF_WEEK_IN_MONTH: " + calendar.
get(Calendar.
DAY_OF_WEEK_IN_MONTH));
System.
out.
println("HOUR_OF_DAY: " + calendar.
get(Calendar.
HOUR_OF_DAY));
System.
out.
println("MILLISECOND: " + calendar.
get(Calendar.
MILLISECOND));
System.
out.
println("ZONE_OFFSET: " + (calendar.
get(Calendar.
ZONE_OFFSET)/(60*60*1000)));
System.
out.
println("DST_OFFSET: " + (calendar.
get(Calendar.
DST_OFFSET)/(60*60*1000)));