Here you can find the source of dateTimePattern()
public static Pattern dateTimePattern()
//package com.java2s; //License from project: Apache License import java.util.regex.Pattern; public class Main { private final static Pattern dateTimePattern = Pattern .compile("-?\\d{4,}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}([.]\\d{1,})?(Z|[+-]?\\d{2}:\\d{2})?"); public static Pattern dateTimePattern() { return dateTimePattern; }/*from w w w . j av a2 s . co m*/ }