Android Date String to Date Convert changeStringToDate(String fecha, String pattern)

Here you can find the source of changeStringToDate(String fecha, String pattern)

Description

change String To Date

License

Apache License

Declaration

public static Date changeStringToDate(String fecha, String pattern)
            throws ParseException 

Method Source Code

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

import java.text.DateFormat;
import java.text.ParseException;
import java.text.SimpleDateFormat;

import java.util.Date;

public class Main {
    public static Date changeStringToDate(String fecha, String pattern)
            throws ParseException {
        DateFormat formato = new SimpleDateFormat(pattern);
        return formato.parse(fecha);
    }/*from  w  w w .j a v a  2 s .co m*/
}

Related

  1. getDateTomorrow(String date)
  2. convertStandardDateTime(String time)
  3. removeTimeZone(String data)
  4. parseFileName(String timeStr)
  5. formatDate(String date)
  6. changeStringToDate1(String str)
  7. changeStringToDate2(String str)
  8. changeStringToDate3(String str)
  9. convertDateStringToDate(String dateString)