is there master date time pattern which will work for every similar date time patterns
问题 My consumer received time format is String with value 20/5/14_9:22:25 or 20/5/14_9:22:5 or 20/5/14_12:22:25 or 20/10/14_9:2:25 etc... all the above have very diffrent date time pattern from yy/MM/dd_HH:mm:ss and there can be many posiblity's of having single digit day,month,hour,minute and/or seconds. is there a masterpattern which will i can use for DateTimeFormatter.ofPattern(format) which will work for all the above pattern?? 回答1: The patterns look the same DateTimeFormatter formatter =