Main.java Source code

Java tutorial

Introduction

Here is the source code for Main.java

Source

import java.text.SimpleDateFormat;
import java.util.Date;

public class Main {
    public static void main(String[] args) throws Exception {
        long yourmilliseconds = 1119193123;
        SimpleDateFormat sdf = new SimpleDateFormat("MMM dd,yyyy HH:mm:ss.SSS");

        Date resultdate = new Date(yourmilliseconds);
        System.out.println(sdf.format(resultdate));
    }
}