Java SQL Date Create getCurrentDateStart()

Here you can find the source of getCurrentDateStart()

Description

get Current Date Start

License

Open Source License

Declaration

public static Date getCurrentDateStart() 

Method Source Code


//package com.java2s;

import java.util.*;

public class Main {
    public static Date getCurrentDateStart() {
        Calendar calendar = Calendar.getInstance();
        calendar.set(Calendar.HOUR_OF_DAY, 0);
        calendar.set(Calendar.MINUTE, 0);
        calendar.set(Calendar.SECOND, 0);
        return calendar.getTime();
    }/*from   www.  j av a 2s .  co m*/

    public String getTime() {
        java.sql.Time ent = new java.sql.Time(System.currentTimeMillis());
        return ent.toString();
    }
}

Related

  1. getCurrentDate()
  2. getCurrentDate()
  3. getCurrentDate()
  4. getCurrentDate()
  5. getCurrentDate()
  6. getCurrentDateStr(String strFormat)
  7. getCurrentDateString()
  8. getCurrentDateWithMinutePrecision()
  9. getCurrentDayStartDate(Date date)