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
-
1
votes0
answers312
viewsProblem deserving Json object with Vraptor4
Good afternoon Personal. I am having problems deserealizing json object with Vraptor4. Taking some tests, you realize a situation: I am using Curl only to test the service, but when I do this…
-
1
votes2
answers4580
viewsPHP - How to compare a date that comes from the Mysql database to the current day?
I have a column in the database which is in format DATE (Y-m-d). In php code I recover this string and have to compare with the current date and this is the condition I am using:…
-
1
votes2
answers1816
viewsDifference between dates in javascript months
People want to have the difference of months between two dates. However I’m missing something. I want to enter the dates in the inputs and the result appear in another input. var DateDiff = {…
-
1
votes1
answer122
viewsComparison of JAVA dates
Good people I have a array of strings with dates, coming from a query with Firebase database. I want to organize it increasingly. Ex: 05/09/2016 - 06/09/2016 - 11/11/2016 Dates are entered in my…
-
1
votes3
answers434
viewsError converting php data
I am receiving the following date of a form: 26/09/2016 I need to convert it to: 2016-09-01 I am using the following command: $v_data= date('Y-m-d', strtotime($data)); only this giving the following…
-
1
votes1
answer386
viewsReturn date with Brasilia Timezone
Does anyone know how I put Brasilia’s time zone in this code? $file_path = "file.zip"; $file_update = date ("Y-d-m G:i:s", filemtime($file_path)); $date = date("n/j", filemtime($file_path)); $hours…
-
1
votes4
answers11113
viewsWhat kind is appropriate for field that saves hours in mysql?
I need to save a field that saves hours in the database mysql. It’s a service record where I need to store the amount of hours of that particular service. When the service scheduling occurs at 11:00…
-
1
votes1
answer86
viewsModify Dates of each object - MONTH, YEAR
I have an application where I create a release of for example 400 real and before saving define the creation date and how many times I have to do. Then saved. And at this point I save I add the…
-
1
votes2
answers636
viewsHow to create a folder named after the current date
I am trying to create a folder with the same name as the current date but simply does not create. import java.util.*; import java.io.File; public class PastaData { Date data = new Date();…
-
1
votes1
answer645
viewsSUM STRING AS DATE - Oracle
I have the spine TEMPO like STRING and I need to add the values as hours. I used all kinds of query to make this sum, but I always fall into the field problem with DATATYPE DATE not accept values…
-
1
votes3
answers1420
viewsHow to get only the month of a date with Laravel 5.3?
I need to take just the month of a date that comes by a $request. But I don’t know how to do it: if ($request->parcelas > 1) { $mes = $request->data_vencimento = date('m'); for($i = 0; $i…
-
1
votes2
answers1280
views -
1
votes2
answers1666
viewsHow to create an array with months
Good afternoon, I am providing maintenance on a code that features a graph, the X axis presents the last 11 months and the current month, who wrote it entered the months manually and wanted to…
-
1
votes1
answer342
viewsSqlite filter as date return error with strftime function
Hello I have the error in the following code SELECT L.*, C.DESCRICAO AS CATEGORIA , CASE WHEN L.TIPO_LANCAMENTOS = 'C' THEN 0 ELSE 1 END AS ICONE FROM LANCAMENTOS L JOIN CATEGORIAS C ON(C.CODIGO =…
-
1
votes1
answer123
viewsIncorrect date arriving
I have the following problem here: I have a request that I make by ajax, and send a date for it, the java receives and saves in the bank, but the date that arrives in java is different from the one…
-
1
votes2
answers425
viewsJavascript Validates Date of Birth and Block Same Year
I need a Javascript that Block put date with the same current year. For Date of Birth Field. Someone can help me? Out in the field: <div class="col-sm-4"> <label for="dataNasc"…
-
1
votes2
answers1128
viewsDo not allow Retroactive date in the Date type field
The date field cannot allow Retroactive dates. need the script to recognize the current date and not allow earlier dates. <div class="col-sm-4"> <label for="ultimoDiaTrab"…
-
1
votes0
answers61
viewsRecognize date text in Brazilian format
Does anyone know any way to recognize text of Brazilian dates like, today, tomorrow, 30/04... on PHP using the function strtotime or in the Cakephp using CakeTime. I’m trying to get the same result…
-
1
votes2
answers689
viewsDate value 0000-00-00 cannot be used in java Date
First of all yes, I’ve already added ?zeroDateTimeBehavior=convertToNullin the connection URL the problem is that in the query the reset date is not null and always release the following…
-
1
votes2
answers689
viewsDate value 0000-00-00 cannot be used in java Date
First of all yes, I’ve already added ?zeroDateTimeBehavior=convertToNullin the connection URL the problem is that in the query the reset date is not null and always release the following…
-
1
votes1
answer820
viewshttp post with Bodyrequest Sqlserver
Hello, How do I get a post request by passing an xml as date? tried so on another GET request and it worked: DECLARE @Tabela TABLE ( CampoXML XML); DECLARE @URL VARCHAR(8000) SELECT @URL =…
-
1
votes0
answers123
viewsMS SQL Query for JSP
I’m creating a website based on the JSP language but I don’t know how to return a consultation which I did in the MSSQL Server, the same goes below: DECLARE @Nomes VARCHAR(8000) SELECT @Nomes =…
-
1
votes2
answers515
viewsAbout Date in Mysql
I’m doing a program for a college job, with a database connection. On a table, I have a column NASCIMENTO of the kind DATE. On the show I have a MaskedTextBox to enter the date of birth, but I put…
-
1
votes3
answers1085
viewsCalculate difference between two dates - I cannot convert the database date to Datetime
Good afternoon! I made a function to calculate the difference of days between two dates, one of these dates is the current one (I create using the new DateTime()) and the other picks up in the…
-
1
votes1
answer425
viewsHow to calculate the year from the number of days?
Without using any library, and ignoring little scientific facts about the rotation of the earth. The function receives the number of days and must determine how many years have passed judging the…
-
1
votes1
answer295
viewsRandom Date with PHP exception
I have the following case: I have opening hours from 08:00 to 12:00 and 13:00 to 18:00. $hora_manha_min="08:00"; // Pode variar conforme consulta em Web Service (String) $hora_manha_max="12:00"; //…
-
1
votes3
answers253
viewsSeparate zero from dates
Guys I’m having a hard time, like I do to take out the zero when I pull the date for a variable ? Example: $mesAtual = date("m"); var_dump($mesAtual); resultado: 06 ESPERADO: 6…
-
1
votes3
answers253
viewsSeparate zero from dates
Guys I’m having a hard time, like I do to take out the zero when I pull the date for a variable ? Example: $mesAtual = date("m"); var_dump($mesAtual); resultado: 06 ESPERADO: 6…
-
1
votes2
answers745
viewsHow to format php date, to display 'Today at 00:00' and 'Yesterday at 00:00'?
I have a record in the TIMESTAMP database and wanted to display for example: If the date is current, show: 'Today at 00:00' If it’s yesterday’s date in the bank, display 'Yesterday at 00:00' And if…
-
1
votes1
answer1810
viewsHow to convert dates into varchar to date in SQL `Firebird`?
How to convert dates into sweep for date? I’m having difficulties in performing searches between dates, due to this discrepancy in the database where I perform the query. When I enter my line of…
-
1
votes1
answer1636
viewsHow to make a query per day, week, month period in Mysql
How do I query for period, day, week, month in Mysql? for example I would like to display data filtered by periods example display data yesterday, last week, two weeks, three weeks, a month ago and…
-
1
votes1
answer460
viewsHow to convert day of year to date (without timestamp) [Postgresql]?
I have the value 2016001 symbolizing the first day of the year 2016, how do I catch for example the ANO/MES of 2016263? Example: ENTRADA: $data = '2016001' SAÍDA: $anomes = '2016-01' If only I could…
-
1
votes1
answer74
viewsQuestions with Dates less than 12/31/69 in PHP
Galley, I’m having a problem turning database dates to be displayed on screen. In my code I do the following. $objReturn['DADOS'][$key]['DATA_NASCIMENTO'] = date('d/m/y',…
-
1
votes0
answers202
viewsFunction strftime() %A is returning weekday without -fair
I’m running the function srtftime() with the parameter %A, however the dates are returning without the "-fair", only Monday, Tuesday, Wednesday, etc. Someone’s had this problem before? setlocale(…
-
1
votes1
answer1699
viewsHow to calculate the time difference between certain hours?
public function checks($request) { $token = $this->count->All(); foreach($token as $tokens){ $tokens->system_contador_user_update_at With this I take the time that is recorded on the bench…
-
1
votes1
answer94
viewsData javascript format
I was looking at the ISO8601 that talks about the format of string passed as argument for the date object. On this site, the date returned is yesterday. I’m passing the value '2017-08-03' to the…
-
1
votes1
answer2495
viewsDate format configuration in Vuejs/Quasar Framework
I have a field for inserting the date of birth, and I want the insertion result to be formatted in 'DD-MM-YYYY'. I managed to have the date displayed in the desired format input, but when I send the…
-
1
votes0
answers89
viewsRegistration of recurrence from calendar
I am trying to make a record of recurrence of dates for an event, I have this calendar: https://procurandooquefazer.com.br/data_calendario/ I wanted it to be possible to click on each date,…
-
1
votes2
answers789
viewsHow to call a function in the Input Type = "date" click
Friends, I have a question I would be happy if you could help me. I have a calendar created with the <input type="date"> of Html5. I need that by clicking on a specific date it takes the date…
javascript html5 input date input-type-dateasked 7 years, 3 months ago Marcelo José Lustosa Rodrigues 41 -
1
votes1
answer3251
viewsAdd +1d to current php date
I have the following date: $data = date("Y-d-m H:i:s"); I need to create the following date: $data_expira = date("Y-d-m H:i:s"); // adicionando +24h How can I add +1d on current date?…
-
1
votes1
answer385
viewsError in Pascoa calendar algorithm
I was playing with programs that calculate dates, but I found a very precise python algorithm that returns me correctly the day that will fall and that already fell the holiday of Paris. The python…
-
1
votes3
answers2769
viewsHow to know if the chosen date is less than the current date?
I need to issue an Alert if the chosen date is less than the current date. I did so: var strData = "15/08/2017"; var partesData = strData.split("/"); var data = new Date(partesData[2], partesData[1]…
-
1
votes0
answers304
viewsSet Datatable column data type to date
I have a Datatable that displays values coming from an SQL database, this way: <table id="tabelaLogs"> <thead> <tr> <th>Código</th> <th> Data </th>…
-
1
votes1
answer1019
viewsHow to identify a specific date in vba?
I have a base with dates of several months and years, and a home screen where I update the submission date and enter the information. I made a code that will identify the month and year of the home…
-
1
votes1
answer63
viewsContact Form - Sending date 0000-00-00
Good morning, I made a contact form and put one but when I put the date right example: 31/08/2017, I click to send the date comes as: 2017/08/31, I would like to leave as standard Brazil. My input:…
-
1
votes1
answer38
viewsHow to change a table indicating that data from a certain field can only vary from date 1 to date 2?
I have a table called "LOC_VEICULO" where the vehicle data are contained. I have the following field: DT_FABRICACAO (DATE), where the dates of manufacture of vehicles are stored. I need to change…
-
1
votes1
answer829
viewsArray of Dates of the Year
In Javascript, how to work with a period spanning day, month and year at the same time and at once instead of using the New Date() getting day, month and year individually and creating rules? The…
-
1
votes0
answers70
viewsHow to save date (yyy-MM-dd) and time (hh:mm:ss) in Postgresql?
I need to store in the Postgresql database the date and time that a particular record has been changed or inserted, but when creating this column I was in doubt about which format to choose,…
-
1
votes1
answer206
viewsClustering in the R
Guys, I need to Clusterize this database and then make the prediction.... I wonder, how could I make the substitution in the right way in this case ? Which type of Clusterization would fit best? I’m…
-
1
votes2
answers1197
viewsHow to save to Date type in this format 10-10-2017 using Simpledateformat?
How to save a Date in format 10-10-2017 using SimpleDateFormat? Date data = null; SimpleDateFormat formato = new SimpleDateFormat("yyyy/MM/dd"); try { data = formato.parse(dataInicio); } catch…