Questions tagged [isodate]

Anything related to ISO standard date formats, i.e. a series of ISO-standardized formats for date and time information meant to be "understandable" worldwide, like the following string "2013-10-02 15:35:02".

Anything related to ISO standard date formats, i.e. a series of ISO-standardized formats for date and time information meant to be "understandable" worldwide.

For example, the following string "2013-10-02 15:35:02" represents the following time in ISO format:

   year: 2013
  month: 10
    day: 2
   hour: 15 
minutes: 35
seconds: 2
240 questions
0
votes
3 answers

Need to Get the time in correct format from JavaScript to ISODateString?

Actually i am trying to convert the date from java script date to ISO date format but the time is displayed is incorrect.In this the time is 14:30 but i am getting 9:30 it should be 2:30.And i need to add 30 min to my time.This function is used to…
Inder Singh
  • 75
  • 3
  • 9
0
votes
2 answers

Go from ISODate to a nice formated string

In my application the dates are stored in ISODate format: ISODate("2012-04-21T07: 32: 16.285Z") What would be the simplest wat to just have a string like this: 21/04/2012, 07:32:16
Saif Bechan
  • 16,551
  • 23
  • 83
  • 125
-1
votes
1 answer

Local DateTime Parsing 2023-02-22T09:47:00.5371934+03:00 and 2023-02-22T09:47:00.537

How can I parse this code to localDateTime? I have 2 area that give me localDateTime, One of them is 2023-02-22T09:47:00.5371934+03:00 the other one is 2023-02-22T09:47:00.537 and response like this: java.time.format.DateTimeParseException: Text…
hsynuls
  • 21
  • 3
-1
votes
2 answers

Date time conversion in Java8

I tried searching across the web, but unable to find a suitable answer and hence posting here. I am calling another API which gives me the date-time like "2022-02-05T17:13:20-06:00[America/Chicago]" I would like to convert this to a format…
Ram
  • 327
  • 1
  • 4
  • 18
-1
votes
1 answer

Node.js: Trying to sort ISO dates with respect to their duration

I'm trying to make a line chart using the chart.js library. I have an array that contains the ISO dates. I'm trying to check who makes ISO dates belong to the same hour and the same day. I would then use this information to create the line chart…
0xMukesh
  • 447
  • 1
  • 7
  • 10
-1
votes
1 answer

Dates and MongoDB - FAIL

I've found a TON of documentation on working with dates in mongodb. Unfortunately none of it seems to work as it's supposed to. Here's my problem... I'm trying to query by date. This is what my document looks like when I just search with a…
Ethan
  • 787
  • 1
  • 8
  • 28
-1
votes
1 answer

How to serialize ISODate object in Gson?

I have following JSON from mongodb: { "_id" : "123", "ip" : "127.0.0.1", "start_time" : ISODate("2016-12-28T17:16:08.283Z"), "end_ocr_time" : ISODate("2016-12-28T17:16:11.652Z"), "end_addr_time" : ISODate("2016-12-28T17:16:12.978Z") } In…
Paco de la Vega
  • 131
  • 3
  • 15
-1
votes
1 answer

Converting String into ISODate in MongoDB using java

Recently, I have imported CSV file to MongoDB with the date field. The issue is with the date field, I try to change the date field from string to ISO format. currently, it show "2016-07-31T04:18:17.000Z". I don't know how to change this into ISO…
prabhu
  • 103
  • 1
  • 3
  • 15
-1
votes
1 answer

Issue comparing ISODates

I have an array like this: var a = [ { "date": "2014-02-06T13:40:09.475Z", "foo": "0" }, ... { "date": "2014-02-14T10:35:25.862Z", "foo": "19" } ]; I want to sort the items by date. The date field…
Ionică Bizău
  • 109,027
  • 88
  • 289
  • 474
-2
votes
1 answer

Extract day of the week and hour from iso datetime stamp in Python

How can I extract the day of the week and the hour of the day from a timestamp in this format? 2020-08-17T01:54:38.000Z So for the example above I would get Monday and 01 in return.
hokoio
  • 39
  • 1
  • 9
-2
votes
1 answer

ISOWeek() in golang not returning desired value for week of the year

The following program is not returning the desired value package main import ( "fmt" "time" ) func main() { t:= time.Date(2011, 1, 1, 0, 0, 0, 0, time.UTC) _, week := t.ISOWeek() fmt.Printf("\nWeek of the year: %v\n",…
zeellos
  • 139
  • 11
-2
votes
1 answer

Find the closest ISO date (javascript)

I have an array of dates in ISO format: const events = [ { start_time: "2015-11-30T14:00:24.082Z", end_time: "2015-12-04T07:00:24.093Z", }, { start_time: "1970-11-01T00:00:00.000Z", end_time: "1970-12-01T00:00:00.000Z", }, …
-2
votes
2 answers

What ISO date format is this?

I could not locate this format, can you tell me please what ISO format is this? 2016-09-30T09:18:29.044Z I need to recreate this in PHP. It is similar to ISO-8601 (date('c')) but the ending is different.
Peon
  • 7,902
  • 7
  • 59
  • 100
-3
votes
3 answers

How do I store iso date in mysql

I am querying an API and I got a date like this: "2019-04-17T14:04:24.224-04:00". I suppose this is an iso date. How can I store the year, month and day on a mysql database? I want the following format "dd/mm/yyyy".
Diego Alves
  • 2,462
  • 3
  • 32
  • 65
-6
votes
3 answers

how to convert LocalDate to a specific date time format

how to convert ISO_LOCAL_DATE to date time format : yyyy-MM-dd'T'HH:mm:ss.SSSZ in java Ex: given date: 2016-01-25 to 2016-01-25T00:00:00.000+0100
Viswanath Nuggu
  • 63
  • 1
  • 1
  • 9
1 2 3
15
16