Questions tagged as 'date'

1
answer

Problem with capturing the time with date ("ymd") PHP

I have that variable to take the current date    $ current_date = date ("ymd"); I have a problem I do not know the exact time but after 6pm to 8pm it takes the data as the current date + 1 some solution for it? if I do:    $ current...
asked by 05.11.2018 / 02:03
1
answer

Block past weeks in input week

I want to block the past weeks to the current one in an input type week so that they are not selectable. I already appreciate the help! Greetings.     
asked by 23.10.2018 / 21:36
2
answers

I have a MySQL query dated and when I execute it, it does not return any error or return any value to me

I have the following statement in mysql select detalle_v.idp, producto.nombre, count(detalle_v.idp) as cantidad, detalle_v.precio as p_unitario, sum(detalle_v.precio) as total from detalle_v inner join producto on detalle_v.idp = producto.idp...
asked by 25.07.2018 / 05:27
1
answer

How to get an interval between a range of hours?

I'm trying to get hours between a range of hours, example: I have 2 hours: 23:00:00 (The start) and 01:00:00 (The end) Now, through a for loop, I try to get the initial time from 30 to 30 minutes until it reaches the end. Exa...
asked by 09.12.2017 / 02:24
1
answer

Problem with the StartDate in date period PHP (DatePeriod)

I am trying to perform a function that selects only the days of a certain range of dates that coincide with the condition of a period of time (for example: the first Friday of each month, the last Friday of each month, all the Friday, etc ...),...
asked by 03.09.2017 / 20:53
1
answer

Adapt a dataframe to a range of dates

my doubt: I have a df (with Fecha as index and another column Cantidad ) with records every 3rd day from 2016-05-03 until 2016-05-20, example:    df.index [   2016-05-03,   2016-05-05,   2016-05-07 ...] With: df = df....
asked by 05.05.2017 / 18:16
1
answer

How to add 12 hours to the current date, save it in an accumulator and re-add in php

I am learning php and I have this code: <?php date_default_timezone_set('America/Monterrey'); $f = date (" d\of F\of Y, H:i"); echo $f, "<BR>"; setlocale(LC_TIME, "es_Mx.utf8"); $f2=strftime("Today is %A %d of %B of %G and is %H:%M %p...
asked by 16.02.2017 / 02:27
1
answer

compare two hours in java [duplicate]

I'm trying to compare two hours to charge prices depending on the time (for a parking lot). public static String horaNoche = "19:00:00"; public static String horaDia = "07:00:00"; //Estos dos strings los obtengo...
asked by 30.12.2016 / 20:55
1
answer

Store date with which an app is started

There is some way to store a date entered (when you start the app) and that with that date stored, every time you start the app it is not necessary to return it to enter. When entering that date, through Calendar, it performs operations (adds an...
asked by 22.08.2016 / 04:56
2
answers

SQL date format

I have created the following table in a SQL database: create table session( SessionId int auto_increment unique, SessionIni datetime, SessionFin datetime, UsHGTAG int, PcId int, primary key (SessionId) ); How...
asked by 28.08.2018 / 07:31