ParserUtility.stringToDateTimeOffset(String dateTime) 方法
定义
Helper to convert the provided string in a offset Date. Expected format: "2016-06-01T21:22:41+00:00"
public static Date stringToDateTimeOffset(String dateTime)
参数
- dateTime
- String
is the string with the date and time
返回
Date
Date parsed from the string
例外
IllegalArgumentException
if the date and time in the string is not in the correct format.