Wednesday, 6 July 2016

Java Date Validations and Various Regex Validators

import java.text.DateFormat;import java.text.ParseException;import java.text.SimpleDateFormat;import java.util.Date; public class CheckDateFormat {  public static void main(String... args) {    Date date = checkDates("2016-01-01");  System.out.println(date);   date = checkDates("2016-13-01");  System.out.println(date);   //returns null   date...
Share:

Popular Posts

Recent Posts

Pages

Powered by Blogger.

About Me

My photo
For the past 10 years, I've been playing with codes using PHP, Java, Rails. I do this for a living and love new things to learn and the challenges that comes with it. Besides programming I love spending time with friends and family and can often be found together catching the latest movie or planning a trip to someplace I've never been before.