Android Date String Parse parse(String input)

Here you can find the source of parse(String input)

Description

parse

Parameter

Parameter Description
input The String representation in format yyyyMMddHHmmss

Return

The datetime

Declaration

public static Date parse(String input) throws java.text.ParseException 

Method Source Code

//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);

    }
}

Related

  1. parseString(String dateStr, String pattern)
  2. parseStringToDate(String str)
  3. parseTM(String s, boolean end)
  4. parseDate(String date)
  5. parse(String dateStr)
  6. parse(String source, String pattern)
  7. parseDate(String value, String[] parsePatterns)
  8. parseJsonDate(String jsonDate)
  9. str2Date(String str)