Example usage for java.sql Date toLocaleString

List of usage examples for java.sql Date toLocaleString

Introduction

In this page you can find the example usage for java.sql Date toLocaleString.

Prototype

@Deprecated
public String toLocaleString() 

Source Link

Document

Creates a string representation of this Date object in an implementation-dependent form.

Usage

From source file:Main.java

public static String getDateTime(long milliseconds) {
    Date date = new Date(milliseconds);
    //return DateFormat.getDateTimeInstance().format(new Date());
    return date.toLocaleString();
}