Most voted "date" questions
Date is the representation of a specific point in a calendar, usually represented by a day, month and year, the values of which may vary according to the culture and calendar used.
Learn more…887 questions
Sort by count of
-
0
votes1
answer68
viewsdate_diff returns incorrect difference
I was doing some tests with this function, but it returns an incorrect difference, as I do to get around it? Example: when compared the difference between day 01/01 with 01/03 return the difference…
-
0
votes1
answer118
viewsHow to use date table bootstrap
I wanted to use this date table, to search a lot of database data. I could, but it takes 12 seconds to load the page. Because you have a lot of data on file. Someone has an example of how you could…
-
0
votes1
answer1178
viewsChange Timezone javascript
I have an application hosted on Heroku. So, every date that is generated there in the api and returned to the front, always returns with a day delay. Already my front, is staying at Hostinger, so…
-
0
votes1
answer24
viewsMark the day of each week by repeating a number of times
I am making a schedule and need to create a form where repeat a number of times the day of each week. Example: Today 09/11/2018 I want you to repeat three times a day of the week? 09/11/2018…
-
0
votes1
answer58
viewsRepeat a number of times in an interval of days
I have this code that repeats a number of times the day of each week. $hoje = new DateTime(); $semana = new DateInterval('P7D'); $repeticoes = 3; // Printa primeira data antes de somar os dias echo…
-
0
votes0
answers77
viewsHow to disable the click event on "Date Range Picker" days?
I’m trying to stop the "click" event on each day of the Daterangepicker, I’m just trying to stop users from changing the period. I created a thumb drive in Codepen, follow link:…
-
0
votes1
answer89
viewsDate validation composed of three integers in Django
In my application I am receiving from the user the day, month and year, the three fields are part of a form and are IntegerField. I don’t want to use the DateField, because the user has the options…
-
0
votes1
answer55
viewsCalculate difference between dates and times coming from time and separate dates
Good morning, I want to create a code where I can tell how many days and hours in a date range, which are shown separately. like this: Start time = 12:07:07 - Start Date = 10/15/2018 - Final Time =…
dateasked 5 years, 11 months ago soliney naiva 31 -
0
votes1
answer68
viewsDoubt about date manipulation using time. h
I am studying C and thinking about a problem I came across the need to study the time library. h. Basically, I would like to calculate the difference between two dates without having to reinvent the…
-
0
votes2
answers258
viewsHow to add 2 days to a date and put the value in HTML
I have the following HTML tag: <h1 id="newDate" style="align: center; font-weight: 100; font-family: Montserrat; font-size: 24px; color: rgb(28, 7, 7);"></h1> I need a Javascript code to…
-
0
votes2
answers267
views -
0
votes1
answer246
viewsLoop with For Next in classic ASP
I need to make a loop where I have the current year 2019, but I want to show the next 10 years from this date using a loop, with this result ex: 2019 2020 2021 2022 2023 2024 2025 2026 2027 2028…
-
0
votes1
answer1386
viewsSave words with python accents
I have this json file maker: {"certa": 1, "vez": 7, "quando": 13, "tinha": 6, "seis": 7, "anos": 6, "vi": 4, "num": 4, "livro": 3, "sobre": 6, "a": 47, "floresta": 1, "virgem": 1,…
-
0
votes2
answers310
viewsHighlight weekends from a date range - Javascript
I’m trying to highlight the weekends from a date gap. I provide the initial and final date and the script generates a sequence of dates within inputs that already exist. I could only do it with the…
-
0
votes2
answers213
viewsJava JSP return of age
I redid the class Idade and made a test with console and worked right the part. But JSP is showing error and I don’t know how it will do and how I will put in JSP to return age. //Classe Idade.java…
-
0
votes1
answer197
viewsSort by year SQL data
I have a table with 2 columns (one with date (YYYY,MM,DD) and another with a numeric value). I want the table to be ordered only per year and in case of entries with the same year the "tie-breaker"…
-
0
votes0
answers33
viewsReturn Day of Week as per date
Good afternoon. I need to do in vba the following function. With the Date function, I can catch the current day, and with that day, I always want to get the date of Thursday, that week. Example: the…
dateasked 5 years, 6 months ago rafaelbertoco 15 -
0
votes1
answer322
viewsDate does not "respect" PHP formatting
I gave a search and found no solution to the problem, I really think it should be something simple that maybe I’m wrong. In the system users can insert some files via intranet, when they insert the…
-
0
votes2
answers299
viewsTransform PHP strtotime in minutes
I am testing a code, to show the difference of date and current time with the variable in minutes <?php $phpdate = strtotime( $data ); $mysqldate = date( 'd-m-Y H:i:s', $phpdate ); $data1 =…
-
0
votes1
answer104
viewsHow to add days in a date with the format dd/mm/yyyy in powerapps?
I’m taking a date from a table and adding days on the count in powerapps. Apparently on the computer works, but when I use the powerapps app on the phone doesn’t work, the date comes changed,…
-
0
votes1
answer104
viewsSubtract 4 times and display at the same time the result in another input
I am with this doubt of how I will take these 4 fields (Time start, end and interval start and end) and subtract them and appear the answer in another input in the weekly workload. The code is this…
-
0
votes0
answers33
viewsHow best to calculate the "intermediate" intervals between two dates
I’m developing a system in Laravel with Fullcalendar v4. When creating an "event", this event has execution date (dtstart) and expiration date (until), however there will be intermediate events,…
-
0
votes2
answers1407
viewsCompare two dates and times and check if one is larger than the other typescript
I created a function that receives an account, I need to check if a property conta.venc_token is longer than today’s date, if it is, return true(because it is an invalid token), otherwise return…
-
0
votes1
answer401
views -
0
votes1
answer85
viewsHow to return a number as if it were a date?
Receive the date in the dd/mm/yyyy text format and return the date in the yyyymmdd number format (example: take "05/10/1983" and return 19831005). But it presented an error in the syntax. def…
-
0
votes0
answers21
viewsHow to format field with a mask defined in Java
How I can format an int field to string the following way: Campo int: 62016 final field a string that has to stand "062016"
-
0
votes0
answers21
viewsHow to format field with a mask defined in Java
How I can format an int field to string the following way: Campo int: 62016 final field a string that has to stand "062016"
-
0
votes1
answer112
viewsMinute difference between two dates
I’m trying to catch the minute difference between two Javascript dates Javascript: function compare() { var currentDate = new Date().format("DD/MM/YYYY HH:mm"); var timeStamp =…
-
0
votes2
answers3879
viewsHow to separate the year from a date with Python and Pandas?
I have a student database with a Ticket Date column in the dd/mm/aa format. I need to generate an Ano_ticket column only with the year of the date of each record. import pandas as pd df =…
-
0
votes2
answers3879
viewsHow to separate the year from a date with Python and Pandas?
I have a student database with a Ticket Date column in the dd/mm/aa format. I need to generate an Ano_ticket column only with the year of the date of each record. import pandas as pd df =…
-
0
votes2
answers436
viewsAdvancing Dates with Local Date
I’m trying to make the date the user enters in the constructor advanced in 1 day. However I am not getting the expected result, is being returned the same day. I tried to check by debug and simply…
-
0
votes1
answer77
viewsDoubt with if and elseif PHP
I’m trying to make an algorithm that divides the value of the function strtotime and aired in minutes, hours. And now I’m trying to put in days, created the variable $datadia, but I’m unable to…
-
0
votes1
answer36
viewsFormatted date range - return of between
I am doing a select of a range of dates, however, when I do the formatted is returning data that should not return, in case, more months and less months... Follows interval and query. SELECT id,…
-
0
votes1
answer97
viewsConvert date string to date
I need to convert the date of format 'Aug 29, 2019' to 06/08/2019 however I am not getting with strptime, Follow the error. Valueerror: time data 'Aug 29, 2019' does not match format ' %m %d, %Y'…
-
0
votes2
answers59
viewsTurn time into number
I have this problem: I can get the time correctly and show everything normal, but when I try to turn the time into number, it returns me NaN: var hora = new Date() var horaAtual = hora.getHours()…
-
0
votes1
answer995
viewsConvert week of year, day of week and year to date
I am setting up a calendar and am looking for a way to convert from the number of the week of the year along with the number of the day of the week and the year in date, for example: $hoje =…
-
0
votes1
answer331
viewsSelect mysql with COUNT and GROUP BY MONTH
Hello, I am trying to put together the information of two tables to generate a graph, I need to count the total of record consults1 and consults2 and group by month: Currently I have this return:…
-
0
votes2
answers1554
viewsAdd hours as Moment.Js
I have a table with the following fields: However I do not want to work with date and time together, I wonder if there is the possibility of Moment.js adding only the hours, without necessarily…
-
0
votes1
answer33
viewsHow to change the date format for the between to work
I have a form type date , which returns values of type 2019-10-24 , however in my database is recorded as 20191024 , this implies that if the user puts in a search two dates equal my between does…
-
0
votes1
answer136
viewsOpen daterangepicker calendar by icon
I would like to open this calendar below by clicking on the icon, but the value should go to my input. var date = new Date(); var primeiroDia = new Date(date.getFullYear(), date.getMonth(),…
-
0
votes2
answers226
viewsHow to compare instances of Localtime?
How do I compare two variables of LocalTime in Java? I can’t use the patterns. import java.time.DayOfWeek; import java.time.LocalTime; public abstract class CorrespondenteBancario { private…
-
0
votes0
answers1194
viewsInsert automatic date - GOOGLE DOCS
I am trying to automate a part of the spreadsheet, where the date after change is inserted. The function is like this: function onEdit(event) { var Timezone = "GMT-3"; var timestamp_format =…
-
0
votes1
answer305
viewsConvert String to Date and check if it is a valid Javascript date
I’m trying to turn a number into a date, for example: Step by string: '00260030062016' I need to get the latest numbers 30062016 and turn into date 30/06/2016. After that, I need to check if this…
-
0
votes0
answers73
viewsJava Date Picking Up Wrong Time
Well, I’m having the following problem getting the system time. in a java process I’m working on I performed the tests at a certain time, and the method below returned 1 hour more SimpleDateFormat…
-
0
votes1
answer51
viewsHow to delete a character in Python
I’m starting a study with data analysis, but I still don’t know how to delete characters import re import panda as pd df.rename (columns = ("nome_motorista***************": "nome_motorista")) that…
-
0
votes1
answer40
viewsString to time conversion. Time
Good afternoon! I wanted to know how to convert/transform a String date into (dd/mm/yyyy) time format. Time
-
0
votes1
answer31
viewsSelect the most recent date of each group in r
I have that data data;code 18/02/2020;C106 05/04/2018;C107 11/09/2016;C107 16/02/2019;C109 11/03/2020;C110 04/03/2020;C114 18/02/2020;C114 06/02/2020;C121 I would like to select the latest date of…
-
0
votes1
answer63
viewsHow to use the Timestamp(). dayofweek method on a dataframe?
I started to study python a short time ago and a problem has arisen that I am not able to solve. I have a csv file containing two columns('ds' = dates and 'y'= data of any result of the respective…
-
0
votes1
answer23
viewsCustomize validation message in Wicket
I currently have a project that is using Wicket 7.8.0 and Java 8 and I have one DateTextField that every time I put one wrong date, the FeedbackPanel reports that the: "deDateField" não é um número…
-
0
votes1
answer42
views