Top "Datetime-parsing" questions

How to parse a date string into a c++11 std::chrono time_point or similar?

Consider a historic date string of format: Thu Jan 9 12:35:34 2014 I want to parse such a string into some kind of …

c++ c++11 date-parsing datetime-parsing
How to convert UTC Date String and remove the T and Z in Java?

Am using Java 1.7. Trying to convert: 2018-05-23T23:18:31.000Z into 2018-05-23 23:18:31 DateUtils class: public class DateUtils { public static …

java java-7 utc datetime-parsing parseexception
Java 8 Date and Time: parse ISO 8601 string without colon in offset

We try to parse the following ISO 8601 DateTime String with timezone offset: final String input = "2022-03-17T23:00:00.000+0000"; OffsetDateTime.parse(…

java datetime iso8601 timezone-offset datetime-parsing
Can't convert string to ZonedDateTime: DateTimeParseException

I try to convert string from JSON to ZonedDateTime just like static String getWatchTime(JSONObject aJson, JSONObject bJson) { long difference = 0 ; …

java json datetime-parsing zoneddatetime
how to get a formatted date as milliseconds?

I have a formatted date from sqllite database, to use this in a graph view I need to format it …

java android date java-time datetime-parsing
How to check if string matches date pattern using time API?

My program is parsing an input string to a LocalDate object. For most of the time the string looks like 30.03.2014, …

java java-8 datetime-format datetime-parsing java-time
How to convert "2020-12-20T00:00:00.000Z" to java.util.Date?

I tried to use DateTimeFormatter formatter = DateTimeFormatter.ofPattern("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'", Locale.ENGLISH); LocalDate date = LocalDate.parse(d.toString(), …

java date localdate datetime-parsing datetimeformatter
Jackson: parse custom offset date time

I have a model which has a timestamp property: class Model { @JsonProperty("timestamp") private OffsetDateTime timestamp; } The format of the …

java datetime jackson java-time datetime-parsing
Create DateTime from string without applying timezone or daylight savings

How do I create a DateTime var from a string which is already adjusted for UTC? I am running this …

c# .net datetime timezone datetime-parsing
Natural/Relative days in Python

I'd like a way to show natural times for dated items in Python. Similar to how Twitter will show a …

python datetime human-readable datetime-parsing humanize