Java SQL Date From getCurrTime()

Here you can find the source of getCurrTime()

Description

get Curr Time

License

Apache License

Declaration

public static String getCurrTime() 

Method Source Code

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

import java.util.Date;

public class Main {
    public static String getCurrTime() {
        Date currdate = getTodayDate();
        java.sql.Time tt = new java.sql.Time(currdate.getTime());

        return tt.toString();
    }//from   w  w w. j a va 2s.c o  m

    public static Date getTodayDate() {
        long date = System.currentTimeMillis();
        java.sql.Date result = new java.sql.Date(date);

        return result;
    }
}

Related

  1. getCurrentTime()
  2. getCurrentTime()
  3. getCurrentTime(String format)
  4. getCurrentTimeMillis()
  5. GetCurrFormattedDateTime(String strFormatTo)
  6. getCurTime()
  7. getDatabaseLocalTime(Time databaseDate)
  8. getDateTime()
  9. getDateTime()