Most voted "dateinterval" questions
5 questions
Sort by count of
-
2
votes5
answers73
viewsCalculate date difference and print these days
I would like to calculate the difference of two dates and print out all the dates between them, for example: $data_inicio = new DateTime("08-02-2018"); $data_fim = new DateTime("10-03-2018");…
-
1
votes1
answer70
viewsHow to include dateInterval property within a variable
After getting the time difference between two fields input time (vine this question), I don’t know now how to put these values within variables, so I can use them in other functions. The var_dump of…
-
1
votes2
answers117
viewsHow to take the entire "days" value of a Dateinterval
How do I get the value days of a DateInterval through the method date_interval_format()? I tried it this way, but it didn’t work: $var = date_interval_format($diferenca, '%days');…
-
1
votes2
answers179
viewsChecking date within a range in SQL
I need to check in my SELECT if the field e. Dating back to is between 30 and 90 days from today’s date. How to make the condition in CASE ? SELECT e.NmrCnt AS [Contrato] ,e.NmrSerie AS [Serie]…
-
1
votes2
answers500
viewsSelecting data and organizing by 15min Sql interval
Good afternoon, I have the following query that returns the amount of vehicles on the track between a certain time. But I want to take this interval between times and set intervals between 15min.…