Java SQL Date Format formatDate(String date)

Here you can find the source of formatDate(String date)

Description

format Date

License

Open Source License

Declaration

public static String formatDate(String date) 

Method Source Code

//package com.java2s;
//License from project: Open Source License 

import java.sql.Date;
import java.text.SimpleDateFormat;

public class Main {

    public static String formatDate(String date) {
        return formatDate(Integer.valueOf(date));
    }//from www.  j  a v a2 s.c  om

    public static String formatDate(int date) {
        Date d = new Date((long) date);
        SimpleDateFormat formatter = new SimpleDateFormat("dd/MM hh:mm:ss");
        return formatter.format(d);
    }
}

Related

  1. formataData(Date data)
  2. formatAsText(ResultSet result_set, PrintWriter out)
  3. formatBytableCols(Object[] obj, String[] tableCols)
  4. formatDate(java.util.Date uDate)
  5. formatDate(Object obj)
  6. formatDateTd(Object obj)
  7. formatDateToCustfmt(java.util.Date date, String dateFmt)
  8. formatDurationMillisToString(long millis)
  9. formatFloat(int floatValue)