Here you can find the source of parseDate(@Nonnull final String sFormat, @Nonnull final String sValue)
@Nonnull public static Date parseDate(@Nonnull final String sFormat, @Nonnull final String sValue) throws ParseException
//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*/ }