Java Parse Date parseDate(@Nonnull final String sFormat, @Nonnull final String sValue)

Here you can find the source of parseDate(@Nonnull final String sFormat, @Nonnull final String sValue)

Description

parse Date

License

Open Source License

Declaration

@Nonnull
    public static Date parseDate(@Nonnull final String sFormat, @Nonnull final String sValue)
            throws ParseException 

Method Source Code


//package com.java2s;
import java.text.ParseException;
import java.text.SimpleDateFormat;
import java.util.Date;
import javax.annotation.Nonnull;

public class Main {
    @Nonnull
    public static Date parseDate(@Nonnull final String sFormat, @Nonnull final String sValue)
            throws ParseException {
        return new SimpleDateFormat(sFormat).parse(sValue);
    }/*  www  .  j av a 2 s.  c  o m*/
}

Related

  1. parseDate(@Nonnull String stringDate)
  2. parseDate(@Nullable String value)
  3. parseDate(Date date)
  4. parseDate(Date date)