Top "Datetime-parsing" questions

Java 8 Time API - ZonedDateTime - specify default ZoneId when parsing

I am trying to write a generic method to return a ZonedDateTime given a date as String and its format. …

java timezone java-time datetime-parsing zoneddatetime
Java 8 DateTimeFormatter parsing for optional fractional seconds of varying significance

My MCVE (as a TestNG unit test): public class MyDateTimeFormatterTest { private static final String BASE_PATTERN = "yyyy/MM/dd HH:…

java java-time datetime-parsing
Why doesn't DateTime.ParseExact parse UTC format with the trailing Z?

Another ParseExact problem. I'm trying to parse a UTC formatted string to a datetime with the format of: "YYYY-MM-DDThh:mm:…

.net datetime datetime-format datetime-parsing
parsing date string in python (convert string to date)

I have a datetime string in the form of a string as: 2011-10-23T08:00:00-07:00 How do i parse …

python datetime-parsing
What system default date format to use?

I'm setting the standards for our application. I've been wondering, what default date format should I choose to use ? It …

java datetime standards datetime-format datetime-parsing
Parsing ISO-8601 DateTime with offset with colon in Java

I have a trouble with parsing date time in java, I have a strange date time format. How can I …

java datetime datetime-parsing
DateTime.ParseExact not working at all, why?

I am attempting to parse the following String into a DateTime object in c#: DateTime.ParseExact("20101108 230125", "yyyyMMdd hhmmss", null) although …

c# .net datetime date-format datetime-parsing
java.time.format.DateTimeParseException could not be parsed at index 0

I am trying to tell Gson how to parse LocalDateTime and LocalDate, but I'm getting this error, which looks to …

java gson java-time datetime-parsing localdate
String of date to OffsetDateTime

I am converting string of date/datetime to OffsetDateTime and I have datetime format which may have one of these …

java-8 java-time datetimeoffset datetime-parsing
How to convert timestamp string to epoch time?

I have time stamp in format 2017-18-08 11:45:30.345. I want to convert it to epoch time, so I am doing …

java timestamp epoch java-time datetime-parsing