set Calendar To First Day In Month - Android java.util

Android examples for java.util:Month

Description

set Calendar To First Day In Month

Demo Code


//package com.java2s;

import java.util.Calendar;

public class Main {
    public static void setToFirstDayInMonth(Calendar calendar) {
        calendar.set(Calendar.DAY_OF_MONTH, 1);
        calendar.getTimeInMillis();/*from w  w w  .ja  v  a2s . c o  m*/
    }
}

Related Tutorials