Java Today getTodayMin()

Here you can find the source of getTodayMin()

Description

get Today Min

License

Open Source License

Exception

Parameter Description

Return

java.util.Date

Declaration

public static Date getTodayMin() 

Method Source Code

//package com.java2s;

import java.util.Calendar;
import java.util.Date;

public class Main {

    public static Date getTodayMin() {
        Calendar cal = Calendar.getInstance();
        cal.set(Calendar.HOUR_OF_DAY, 0);
        cal.set(Calendar.MINUTE, 0);
        cal.set(Calendar.SECOND, 0);
        cal.set(Calendar.MILLISECOND, 0);

        return cal.getTime();
    }//from   w  w w .  j av a  2  s .c  om
}

Related

  1. getTodayLastSecond()
  2. getTodayLastSecond()
  3. getTodayLastUpdateTimeFormat()
  4. getTodayLimit()
  5. getTodayMidnight()
  6. getTodayNight()
  7. getTodaysDate()
  8. getTodaysDate(String dateFormat)
  9. getTodayStart()