ISO 8601 is the International Standards Organization's standard for representing time as a string. It covers dates, times, timezones, durations, and many other things.
Questions tagged [iso8601]
911 questions
-3
votes
1 answer
Do these date strings represent the same moment of time?
2023-04-24T10:28:12.1380000Z
2023-04-24T10:28:12.1380000-05:00
2023-04-24T10:28:12.1380000+05:00
do these ISO strings represent the same moment of time? (although their local times are different)
I get confused sometimes, apologies if i missed any…

Tiju John
- 933
- 11
- 28
-3
votes
1 answer
Convert String date in Basic ISO 8601 format to a custom format, in Java
I want to convert a date that I receive as a parameter as follows:
String fecha = "yyyymmdd"; ----- Received as a parameter.
convert it to "yymmdd", i did it with SimpleDateFormat, but it doesn't work for me, it tells me that the conversion is not…

Jonathan Ortiz
- 9
- 3
-3
votes
5 answers
convert UNIX epoch time to ISO8601 in a stream of data with perl
I'm using an API with curl --write-out '\n%{http_code}\t=%{time_total}s\n' that provides the date information about the fields in UNIX Epoch time instead of ISO8601, which makes it difficult to understand what's going on.
Sample…

cnst
- 25,870
- 6
- 90
- 122
-3
votes
1 answer
How to convert a datetime text into datetime object in Python?
I want to convert a datetime string to datetime object which will be further processed to display in a different format.
The string is in the for, 2018-04-24T16:42:17Z.
I have tried the following method but it gives error.
import…

Boudhayan Dev
- 970
- 4
- 14
- 42
-3
votes
1 answer
How to handle negative ISO 8601 date string in java?
I am trying to convert ISO 8601 date string to epoch time. How do I handle negative dates? Is the below code correct? Should I use something else instead of simple date format library? Negative dates are for BC.
String formatString =…

Zack
- 2,078
- 10
- 33
- 58
-4
votes
2 answers
How to parse an ISO8601 date
I got string of date regarding this format:
2011-12-29T09:09:06-0500
How can I convert this into a date object?

Hirak M.
- 13
- 1
- 1
-4
votes
1 answer
How can you manually generate ISO 8601 time python
My desired output is something like this in ISO 8601 format:
Is there a way I just manually written it like that? Thank…

Anh Phuong Bui
- 61
- 2
- 7
-4
votes
1 answer
python convert ISO 8601 time doesn't work
I'm trying to convert dates from the utcnow (ISO 8601) function of azure logics apps in python:
this one returns the following format:
2018-02-07T13:30:17.2967490Z
so I'm doing it:
dateformat = datetime.strptime…

tdav
- 11
- 3
-5
votes
1 answer
I am looking for a method that can take string and format it to ISO 8601 timestamp
I am trying to take a string and convert that string into ISO8601 timestamp format using Go.
I read a few StackOverflow posts and tried them, none of them worked for me. I might be doing it wrong?
My datetime string is something like
date :=…

Prady
- 1
- 2
-5
votes
1 answer
Validating ISO-8601 input string
I will be having a String in ISO-8601 format with - and : i.e., 20170609T184237Z
Whats the best way to
Validate input string
Convert it into milliseconds string
The only way I could think of is create a DateTime object and then from there…

Em Ae
- 8,167
- 27
- 95
- 162
-6
votes
1 answer
Parse ISO8601 in swift
I am parsing 2020-06-09T18:11:26.904Z and it returns this 09 Jun, 11:11 pm it should be 06:11 pm
I have tried this solution Parsing a ISO8601 String to Date in Swift but it also works like the same.
Here's my code.
let df =…