get Time of first day of current Month - Android java.util

Android examples for java.util:Month

Description

get Time of first day of current Month

Demo Code


//package com.java2s;
import android.text.format.Time;

public class Main {
    public static Time getFirstTime(Time time) {
        time.monthDay = 1;/*from ww  w.ja v a  2  s  .c o  m*/
        time.normalize(true);
        return time;
    }
}

Related Tutorials