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
-1
votes
1 answer
Finding duration between ISO 8601 times
I have a dataset, myTable, that has ISO 8601 time/date values. It looks like this:
username minTime maxTime
Alice 2018-09-24T17:49:31.67Z 2018-10-03T20:07:05.216Z
John 2018-08-13T17:38:21.37Z …

Anna
- 379
- 5
- 16
-1
votes
1 answer
How to recognise the 'T' character correctly within this ISO 8601 date in PHP
I have the following string with the 'T' seperator - how do change the $format var correctly to take into account the 'T' within the $datestring?
$datestring = '2018-12-30T11:30:00';
$format = 'Y-m-dG:i:s';
$date =…

Zabs
- 13,852
- 45
- 173
- 297
-1
votes
1 answer
How to change timezone from ISO8601 format in data frame in R?
I have a large dataframe with a column of dates and times in the iso8601 format (YYYY/MM/DDTHH:MM:SSz). I am trying to add a new column and change the time zone. My line of code I am using is below.
df <-cbind(as.POSIXct(df$DateTime, tz =…

johnnyg
- 129
- 8
-1
votes
1 answer
Trying to check whether an variable is with the following format YYYY-MM-DDTHH:MM:SS.MSSZ(ISO8601 timestamp) using preg_match
so i'm Trying to check whether an variable is with the following format YYYY-MM-DDTHH:MM:SS.MSSZ(ISO8601 timestamp) using preg_match.
What i have tried:
$timezone = new DateTime("now", new…

Zorono
- 75
- 2
- 12
-1
votes
1 answer
SAP PI UDF to convert date without time to datetime ISO8601 string
I need to write a java function for SAP PI which returns a string for my XML mapping in the format: yyyy-MM-dd T HH:mm:ss (e.g., 2018-08-15T00:00:00) even when my source field is just a date field without time (e.g., 2018-08-15).
I've tried the…

Mike Dole
- 675
- 2
- 14
- 30
-1
votes
1 answer
Looking for tips to batch convert legacy date format in Powershell to ISO 8601
YYYYMMDD in files that are entered inconsistently for example 10-24-2007, Oct-24-07, oct-07
-1
votes
1 answer
Convert DateTime to ISO 8601 DateTime Format with timezone
How do I convert my time from 2010-12-30 23:21:46 to ISO 8601 date format?
I tried $datetime->format(DateTime::ATOM) and date(DATE_ISO8601, strtotime('2010-12-30 23:21:46')) which converts into ISO8601 format like 2016-12-31T09:47:50+0000. But what…

Nishanth G
- 83
- 4
- 12
-1
votes
1 answer
Why datetime can't recognise the string?
In this code item.date_time looks like "2017-10-18T04:57:39.000Z". When I put this (or any other similar string) instead of item.date_time - it works well. But despite the fact that item.date_time is equal to strings like this - it calls…

twin_choke
- 9
- 3
-1
votes
3 answers
Swift: Convert ISO8601 to Unix Epoch
I'd like to take a ISO8601 timestamp, like this: YYYY-MM-DDTHH:MM:SSZ, and convert it to a Unix epoch time stamp using Swift.

dannymout
- 91
- 9
-1
votes
3 answers
Javascript Date Function ISO8601
I thought I had a standard ISO date and the Javascript Date() function should convert it with no parsing, but I get the following:
my date :
2015-12-08T13:42
Javascript date function result:
Tue Nov 12 2075 13:42:00 GMT+0100
Is my date in an…

user5072412
- 187
- 1
- 10
-1
votes
2 answers
java JodaTime remove seconds
I am using JodaTime to create ISO 8601 String.
DateTime jodatime = new DateTime(2016, 04, 05, 23, 59, 59, 999, DateTimeZone.UTC);
String converted = jodatime.toDateTimeISO().toString();
Right now, I am getting the…

Ryan
- 130
- 11
-1
votes
1 answer
How to parse python module for openstack
Recently, when I was installing openstack on 3 vm on centos 7 using answer file I had the following error:
10.7.35.174_osclient.pp: [ ERROR ]
Applying Puppet manifests [ ERROR ]
ERROR : Error…

guy
- 1
- 1
-1
votes
2 answers
Format Duration as ISO8601 Period with NSDateIntervalFormatter
I am trying to convert the duration between two dates to the format "'P'yyyy'Y'M'M'd'DT'H'H'm'M's.S'S'". An example of my expected output is: P0Y0M0DT0H0M0.002S (this is port of an Android project that uses DurationFormatUtils).
My test…

Mike D
- 4,938
- 6
- 43
- 99
-1
votes
1 answer
Parsing a human readable time from an ISO-8601 formatted string using moment.js
I have an ISO-8601 date of the form:
2014-02-02T15:00:00-0800
Can anyone demonstrate how to to extract a time of the form
3:00pm
Using moment.js

Ben Pearce
- 6,884
- 18
- 70
- 127
-1
votes
2 answers
Current time in YouTube date API format
I am using the YouTube API and it returns uploaded & updated times in this format: 2013-05-13T13:12:42.000Z (ISO 8601). How can I get the relative time using Javascript (or jQuery)?
Some sources that I've tried to combine to get this to work,…

Sam
- 6,616
- 8
- 35
- 64