Here you can find the source of parse(String input)
Parameter | Description |
---|---|
input | The String representation in format yyyyMMddHHmmss |
public static Date parse(String input) throws java.text.ParseException
//package com.java2s; import java.text.SimpleDateFormat; import java.util.Date; public class Main { /**/* w w w .ja v a 2 s . c o m*/ * @param input The String representation in format yyyyMMddHHmmss * @return The datetime */ public static Date parse(String input) throws java.text.ParseException { return new SimpleDateFormat("yyyyMMddHHmmss").parse(input); } }