Java Date Convert dateToMorining(Date date)

Here you can find the source of dateToMorining(Date date)

Description

date To Morining

License

Apache License

Declaration

public static Date dateToMorining(Date date) 

Method Source Code

//package com.java2s;
//License from project: Apache License 

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

public class Main {

    public static Date dateToMorining(Date date) {
        Calendar calendar = Calendar.getInstance();
        calendar.setTime(date);//from w ww. ja va  2 s. c  o m
        calendar.set(Calendar.HOUR_OF_DAY, 0);
        calendar.set(Calendar.MINUTE, 0);
        calendar.set(Calendar.SECOND, 0);
        return calendar.getTime();
    }
}

Related

  1. dateToInt(Date date)
  2. dateToISOXDSb(Date date)
  3. dateToJulian(Date date)
  4. dateToLong(final Date date)
  5. DateToMask(Date javaDateType)
  6. dateToNumber(Date date)
  7. dateToQTime(final Date date)
  8. dateToRRNDate(Date date)
  9. DateToStr(java.util.Date val)