Questions tagged [date]

5 votes
1 replies
Why does the Chrome V8 JavaScript engine recognize “TG-1” through “TG-12” as valid dates/times?
I implemented a CSV parser that guesses the type formats for each column but I have found that the JavaScript Date class believes "TG-1" is a val...
0 votes
1 replies
Swift: How should I subtract 5 minutes from Datecomponents?
I am working on an app that notifies the user 5 minutes before the departure time. I'm using firebase as my database. I've tried searching answ...
asked 4 months ago
0 votes
0 replies
Check if list of dates is complete in Python using Pandas
I have a text file with a header containing the start and end dates of a time series. The rest of the file contains 3 columns: start day, end day...
asked 4 months ago
-1 votes
1 replies
Get the first and last day of the workweek when a date is given [duplicate]
This question already has an answer here: Get first/last day of week in php? 4 a...
asked 4 months ago
1 votes
1 replies
fullcalendar event info in modal popup
I am working on fullCalendar and attempting to get the event info to show in a popup modal (when the event is clicked on). However I can only g...
0 votes
0 replies
Google Charts: Remove some dates from x-axis
In my Chart there is x-axis used for dates i didnt provide any data. This results in a straight line in the chart. I want to cut off these parts...
asked 4 months ago
0 votes
3 replies
Comparing a database date field with date
Compare database date with a date I want to check the database date field is less than 5 days or not I tried with Carbon class which output val...
asked 4 months ago
1 votes
3 replies
Google Sheets: convert string to date
I have to following date string: 2019-05-07T19:00:00.000Z I now want to convert date and time into 2 cells, but it still doesnt work with the...
0 votes
2 replies
How to create an array of the last few hours in ReactJS?
I need an array of the last 12 hours in my react app but I only have 2 so far and I'm doing it the most tedious way. This is my current code tha...
asked 4 months ago
-1 votes
1 replies
How to get last Sunday including today in PostgreSQL?
Is it possible to get last Sunday in PostgreSQL including today's day? For example if today is Sunday expression returns today's date. If today...
asked 4 months ago
0 votes
2 replies
How to find the difference between two Dates and display it using Number of Years, months and Days using java script? [duplicate]
This question already has an answer here: Difference between two dates in years, months, days in JavaScript...
asked 4 months ago
-2 votes
1 replies
How to get time range using current time in sql [closed]
I need to get time for 2 hours before the current time and time for after two hours to current time. 2hr+current time<-----before--------curr...
asked 4 months ago
-1 votes
2 replies
Python Date Time Giving Wrong Value
I am running this code to get timestamp from string But it giving wrong value for some particular value. import datetime import time print(date...
asked 4 months ago
1 votes
3 replies
How does the Date.getDate() function work?
I'm planning to write a couple of date util functions for my project, but cannot understand why Date.prototype.getDate is returning weird numbers...
asked 4 months ago
1 votes
3 replies
How can I use function chaining with dates in JavaScript?
consider the code const monthString = new Date().setMonth(2).toLocaleString('en-US', { month: 'long' }); I would expect the value of monthStr...
asked 4 months ago
0 votes
0 replies
How to concatenate month and day from full-format dates in pig
I uploaded a names column and a dates column in PIG that appear in the following format: 'yyyy / MM / dd HH: mm: ss'. I want to show the column o...
asked 4 months ago
-1 votes
1 replies
Convert Date in YYYYMM to YYYY-MM-DD [duplicate]
This question already has an answer here: format year-month to POSIXct [duplicate]...
asked 4 months ago
1 votes
2 replies
Is there an R function mirroring EXCEL COUNTIFS with date range as condition?
I currently face the following issue. I want to come up with an R code that creates a new column called, e.g., reviews_last30days in my main da...
asked 4 months ago
1 votes
2 replies
Request body date parsing issue
I have a strange issue. I'm using echo package for routing. While I'm decoding json to struct I'm getting error parsing time \"\"2019-01-02\"\" a...
asked 4 months ago
0 votes
1 replies
Regex to find multiple different date formats
I am trying to find a regex to check if a date can be found within an string. The dates can be available in four different formats: 01 Decemebe...
asked 4 months ago
1 votes
2 replies
SetInterval has to be triggered whenever the time is getting changed?
Am using setInterval for updating the time, for that i have set 60000s as interval. whenever i load the page i will get the time and time is gett...
0 votes
0 replies
R does not change the date format to specified type
I am trying to create a date variable in a specific format - mdy as below: d1 = as.Date(c("04/01/2017"),format = "%m/%d/%Y",origin = '1970-01-01...
asked 4 months ago
1 votes
1 replies
How to convert Milliseconds into date and use them in graph in JS
I trying to create a graph on the website. I am having problem to parse the timestamp from CSV file to JS. I am using papa parse to parse the CSV...
asked 4 months ago
0 votes
0 replies
Angular Material datapicker with custom formats AND filtering available days
I'd like to achieve effect similar to https://material.angular.io/components/datepicker/examples, where format of my date is like in the last exa...
-1 votes
2 replies
How to find a number of workdays between two dates in Python? [duplicate]
This question already has an answer here: Count number of days between dates, ignoring weekends...
asked 4 months ago