Main.java Source code

Java tutorial

Introduction

Here is the source code for Main.java

Source

import java.text.ParsePosition;
import java.text.SimpleDateFormat;

public class Main {
    public static void main(String[] args) {
        String input = "Sun Nov 10 10:00:00 CET 2013";
        SimpleDateFormat parserSDF = new SimpleDateFormat("EEE MMM d HH:mm:ss ZZZ yyyy");
        System.out.println(parserSDF.parse(input, new ParsePosition(0)));
    }
}