Java Locale Format formatDate(String _Date)

Here you can find the source of formatDate(String _Date)

Description

format Date

License

Open Source License

Declaration

public static Date formatDate(String _Date) throws ParseException 

Method Source Code


//package com.java2s;
//License from project: Open Source License 

import java.text.ParseException;

import java.text.SimpleDateFormat;

import java.util.Date;
import java.util.Locale;

public class Main {

    public static Date formatDate(String _Date) throws ParseException {
        if (_Date == null)
            return new Date();
        SimpleDateFormat _SimpleDateFormat = new SimpleDateFormat("yyyy-MM-dd", Locale.SIMPLIFIED_CHINESE);
        return _SimpleDateFormat.parse(_Date);
    }/*ww  w  . j ava 2 s.  c  o  m*/
}

Related

  1. formatDate(final Date date, final String format)
  2. formatDate(final Date date, final String pattren)
  3. formatDate(java.util.Date d, String format)
  4. formatDate(java.util.Date d, String format)
  5. formatDate(java.util.Date date, String formatPattern)
  6. formatDate(String dateStr, String format, String toFormat)
  7. formatDate(String pattern, Date date, String valueForNull)
  8. formatDate(String strDate, Locale locale)
  9. formatDate(String value, Locale locale)