Questions tagged [Work with date / time] (236)

1
answer

How can I change the date?

In this date: 2019-09-20T07:00:00.000 Z vojno to remove the letter Z, and T instead of a space, what would it be like this: 2019-09-20 08:30:00.00eventDragStart: function (info) { var start = info.event.start.toISOString(); var end = info.event.end.toISOString(); $.ajax({ url: "http://amo-auto.humanistic.tech/calendar.p...
serena.Dibbert asked March 30th 20 at 01:20
2
answers

How to trim the date?

I'm trying to trim such date "2019-09-20 08:15:15+00:00" so "2019-09-20 08:15:15" for this is a piece of code:from Goose import goose3 import dateparser g = Goose() article_date = g.extract(url='http://stavropol-news.net/society/2019/09/20/20319.html').publish_date date_parsed = dateparser.parse(article_date) if len(date_...
Darre asked March 30th 20 at 00:30
2
answers

How to make to change the month at the conclusion of tomorrow's date (now 33 Sep)?

As when you add several days to set the transition for the next month, as at the moment prints 33 September?https://jsfiddle.net/u1jsx7bo/3/Data = new Date(); Month = Data.getMonth(); Day = Data.getDate() + 17; switch (Month) { case 0: fmonth expressions="January"; break; ....... case 11: fmonth expressions="Dec"; break; ...
Samara_K asked March 29th 20 at 23:56
1
answer

How to get next day?

There is a date in the format YYYY-mm-dd. Example: 2019-01-01. How to get next day ? That is: 2019-01-02.
laurie.Collins asked March 29th 20 at 23:43
2
answers

How to find the intersection of two date ranges?

There are two date range: 01.01.2019 - 31.05.2019 and 01.03.2019 - 31.12.2019. How to find the intersection? As a result, need to: 01.03.2019 - 31.05.2019.
stanton.White14 asked March 29th 20 at 23:22
1
answer

How to convert a string using regular expressions (PHP)?

There are input, for example:$date_and_time = array ( [0] => '06.08.2019 12:09:43', [1] => '06.08.2019 09:45:19', [2] => '29.07.2019 14:13:31' ); Don't want to reinvent the wheel. You must convert it using regular expressions and get something like this:$date_and_time = array ( [0] => array ( 'date' => ...
Noel_Hintz asked March 29th 20 at 21:21
1
answer

How to connect a js library date-fns?

Good day , trying to connect the js library date-fns. Doing all the official documents , but displays an error - RangeError: Invalid time value. Please tell me how to fix it.import React from 'react'; import PropTypes from 'prop-types'; import formatDistanceToNow from 'date-fns/formatDistanceToNow'; import ruLocale from 'da...
Luna74 asked March 29th 20 at 20:12
0
answer

How to convert days to a date a fixed number of days in the month?

The last time I train in OOP and found this problem. Not sure of the proper solution so please help. Good day, is the task of the Converter world time. Somewhere in the universe dangles NN planet where a day is 24 hours (as on earth), but the days in the month and 25 months in a year 16. You need to write Converter date bet...
shane94 asked March 29th 20 at 20:05
1
answer

Laravel diffForHumans() how to configure?

Hello! On the website you get the date from database in this format: 2019-08-22 22:38:31 I use Carbon in Laravel, to get the date in this format: 2 hours ago / 1 seconds ago / 2 days ago etc. - According to the documentation, I put the date thus:$myData->created_at->diffForHumans(); The result: in 4 hours But should a...
Liliane.OConn asked March 27th 20 at 13:34
2
answers

Why unexpectedly changes the time in debian?

Debian 8. System time synchronization is disabled. (ntp deleted).# timedatectl Local time: Thu 2019-08-22 14:02:05 +03 Universal time: Thu 2019-08-22 11:02:05 UTC RTC time: Thu 2019-08-22 11:00:10 Time zone: Europe/Minsk (+03, +0300) NTP enabled: no NTP synchronized: no RTC in local TZ: no DST active: n/a A second later af...
Elisha58 asked March 27th 20 at 13:31