Here you can find the source of parseSilently(String p_string)
public static Date parseSilently(String p_string)
//package com.java2s; /*//from w w w .java2s.c om * oxAuth is available under the MIT License (2008). See http://opensource.org/licenses/MIT for full text. * * Copyright (c) 2014, Gluu */ import java.text.SimpleDateFormat; import java.util.*; public class Main { public static Date parseSilently(String p_string) { try { SimpleDateFormat parser = new SimpleDateFormat("EEE MMM d HH:mm:ss zzz yyyy"); return parser.parse(p_string); } catch (Exception e) { return null; } } }