clear Calendar Time Part - Android java.util

Android examples for java.util:Calendar

Description

clear Calendar Time Part

Demo Code


//package com.java2s;

import java.util.Calendar;

public class Main {
    private static Calendar clearTimes(Calendar c) {
        c.set(Calendar.HOUR_OF_DAY, 0);
        c.set(Calendar.MINUTE, 0);
        c.set(Calendar.SECOND, 0);
        c.set(Calendar.MILLISECOND, 0);
        return c;
    }//ww  w  .  ja v  a  2s.  co  m
}

Related Tutorials