Questions tagged as 'date'

1
answer

Request records that match a time interval in MySQL

I have a table where I make a record every minute. The column where I keep the time of each insertion is of type TIME . I want to make a query that I select the records that with an interval of 2 minutes. I mean, show me something similar to...
asked by 07.07.2017 / 20:45
1
answer

Convert php date

I have the following date: "11-07-2017" day / month / year I need to convert it to "yy / mm / dd" to insert it into the mysql bd I have tried with this without results: $date = 11-07-2017; date_format($date,'Y-m-d'); I get this error:...
asked by 03.07.2017 / 23:06
2
answers

Problems to consult PHP night data

I have the following query to show the average temperature and relative humidity of the last two nights from the current date: SELECT DATE(date) AS Fecha, ROUND(AVG(temperature),2) AS Temperatura, ROUND(AVG(humidity),2)...
asked by 29.09.2016 / 14:25
3
answers

How can I subtract two dates and give me back hours minutes and seconds Oracle

For example if rest 01/01/2017 19:30:00 - 01/01/2017 22:30:30 , in the output should appear 3 horas y 30 segundos This is what I have tried but it does not return it with the format I want, it returns the values of the date separ...
asked by 26.04.2017 / 13:43
2
answers

How to show dates with a format in uicalendar?

Hi, I've set up an angular calendar, it's a news programmer where people record what time they would be available or not at what time. How can I show the date in the calendar in "1 mar 2017 12:00" format? I know that with ng-repeat...
asked by 27.03.2017 / 16:17
1
answer

Format Excel Date in Java

I have a question, I hope someone can help me: In Excel, inside a cell I have a date, for example, today: 2/12/2018 To this cell I give a right click - > Format of cells and format as a number, with which I have the following result:...
asked by 05.12.2018 / 22:23
2
answers

Show current date in input type date with JavaScript

I need to show the current date in a date type input instead of "dd / mm / yyyy".     
asked by 24.05.2018 / 21:14
3
answers

Know the number of the week of a range of dates

I would like to get the number of the week from a range of dates for example if I have: $fechaI = '2017-01-'01'; $fechaF = '2017-01-21'; then it's 3 weeks and I want to save it in a array that is $nSena =[1,2,3]; where 1,2...
asked by 08.09.2017 / 20:43
2
answers

Know which date is higher in Javascript

I have 2 dates, one start and one end, I try to avoid that the start is greater than the end, apart from that I can not do it, I get rare years, days that are not ... etc. console.log("start ", m , d , y);...
asked by 07.11.2018 / 11:30
3
answers

Check if a string is a date in PHP

I am receiving two dates from a form, I am in the validation process on the server. How do I validate the string if it is a valid date? I have now decomposed the date in an array $fecha_array = explode('-', $fecha); and I have highlighted...
asked by 02.01.2019 / 18:08