Skip to main content
Stack Overflow
  1. About
  2. For Teams
Filter by
Sorted by
Tagged with
-1 votes
1 answer
89 views

we have 2 isoString dates: startedAt: '2023-10-18T14:03:36.150Z', closedAt: '2023-10-18T18:13:33.150Z' When I'm taking duration differences it's working good: const duration = moment.duration(moment(...
-2 votes
2 answers
6k views

const currentDate = new Date(); const lastMonthStartDate = new Date( currentDate.getFullYear(), currentDate.getMonth() - 1, 1 ); const lastMonthEndDate = new Date( currentDate.getFullYear(), ...
1 vote
0 answers
177 views

After adding +1 day and converting to ISO format, it will not execute correctly on the entry date 2022年03月27日. Isn't it related to daylight saving time? If I also added the time to the date (2022年03月07日 ...
MatoP's user avatar
  • 11
2 votes
1 answer
1k views

When I use Vuetify datetimepicker, I get the following date: "Wed Mar 16 2022 04:20:00 GMT+0100" I need to convert this to ISO8601. But if I store this date in a variable called "date&...
0 votes
3 answers
2k views

I am trying to set a date that has ISOString format but the milliseconds should be set to two digits. If the ISOString returns 2021年11月02日T05:49:12.704Z I want it to be 2021年11月02日T05:49:12.70Z (...
Jay's user avatar
  • 401
0 votes
1 answer
226 views

Currently I have an app in development that would pull some data in Amazon selling partner api. My goal is to replicate the reporting from Amazon's seller dashboard. Currently the account is is Eu ...
3 votes
1 answer
747 views

I'm working with an existing codebase, and the existing code calls for a date from an endpoint. The expected value is an ISO string (i.e. "2020年01月09日T07:41:02.6025984-05:00"): // in my ...
0 votes
0 answers
39 views

I'm using date.toISOString() to use DateTime format "yyyy-MM-dd'T'HH: mm: ss'Z '", I must use ISO 8601 format. At the time of transformation, the time is showing it 5 hours in advance, that ...
0 votes
0 answers
494 views

I'm getting a mysterious error when trying to use the xlsx.writeBuffer() method in my Angular app to try and download an Excel file to the client browser. After finishing all the changes that needed ...
2 votes
2 answers
3k views

I have this date format: Tue Oct 20 2020 00:00:00 GMT+0100 (Central European Standard Time) And when I do : myValue.toISOString(); that's what I get 2020年10月19日T23:00:00.000Z It's subtracting a day. ...
-1 votes
1 answer
55 views

this function: handleChange(e) { this.setState({ [e.target.name] : e.target.value, displayName: (this.state.firstName.substring(0,2)) + (this.state.lastName.substring(0,2)), ...
0 votes
2 answers
282 views

The following script calculates me next Friday and next Sunday date. The problem : the use of .toISOString uses UTC time. I need to change with something that outputs local time. I'm very new to ...
0 votes
2 answers
250 views

I want to compare two Iso string dates by days, date have this format : ** "2020-05-07T15:51:28.124Z" ** I made this function to get the result of comparison by days : compareDatesByDays(...
1 vote
0 answers
27 views

Paying with new Date().toISOString(), I observe an inconsistency in parsing of the same date in different string formats: 2020年01月01日 and 2020年01月01日: const opt1 = new Date("2020-01-01").toISOString(...
0 votes
1 answer
213 views

When I try the following code in my JS console, it returns the right UTC notation (-2 hours): new Date('1978/04/03').toISOString() -> "1978-04-02T22:00:00.000Z" However, starting from April 2nd ...
Edwin's user avatar
  • 789

15 30 50 per page
1
2

AltStyle によって変換されたページ (->オリジナル) /