Java String to Date stringDateToDate(String str)

Here you can find the source of stringDateToDate(String str)

Description

string Date To Date

License

Apache License

Declaration

public static Date stringDateToDate(String str) throws ParseException 

Method Source Code


//package com.java2s;
//License from project: Apache License 

import java.text.ParseException;

import java.util.Date;

public class Main {
    public static Date stringDateToDate(String str) throws ParseException {
        java.text.DateFormat format = new java.text.SimpleDateFormat("yyyyMMdd");
        return format.parse(str);
    }/*  ww w  . j  a  v a  2s.c  om*/
}

Related

  1. rfc3339ToDate(String s)
  2. SortStringToDate(String thisdate, Locale locale)
  3. strChangeToDate(String str)
  4. strDateConvertToDate(String strDate, String fFormatStr)
  5. stringArrayTODateArray(String[] dates_s, SimpleDateFormat dateformat)
  6. stringDateToDate(String StrDate)
  7. stringFechaToDate(String fechaS)
  8. stringToDate(final String dateString)
  9. stringToDate(final String dateTimeStr)