Java SQL Date Convert dateToString(java.sql.Date data)

Here you can find the source of dateToString(java.sql.Date data)

Description

date To String

License

Apache License

Declaration

public static String dateToString(java.sql.Date data) 

Method Source Code


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

import java.text.SimpleDateFormat;

public class Main {
    public static String dateToString(java.sql.Date data) {
        String dta;/*  ww w  . j av a  2 s .  com*/
        SimpleDateFormat sdf = new SimpleDateFormat("dd/MM/yyyy");
        dta = sdf.format(data);
        return dta;
    }
}

Related

  1. dateToSTR(Date data, String formato)
  2. dateToStr(java.util.Date date)
  3. dateToString(Date date)
  4. dateToString(Date date, String format)
  5. dateToString(java.sql.Date d)
  6. dateToString(java.sql.Date datee)
  7. dateToString(java.util.Date date, String dateFmt)
  8. to2GMTString(final Date tsStart, final Date tsEnd)
  9. to_char(Date date, String format)