Main.java Source code

Java tutorial

Introduction

Here is the source code for Main.java

Source

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

public class Main {
    public static void main(String[] argv) throws Exception {

        Format formatter = new SimpleDateFormat("yyyy.MM.dd.HH.mm.ss");
        Date date = (Date) formatter.parseObject("2002.01.29.08.36.33");
        System.out.println(date);
    }
}