How to change the time when a day ends in PHP?

0

I would just like a method to change or set what time a day ends in PHP, and not at 12pm as it normally is, that is, I would like something like this example:

Dia: 30 - 1 - 18 
Inicia: 6am del 30 - 1 - 18
Termina: 6am del 31 - 1 - 18

Dia: 31 - 1 - 18
Inicia: 6am del 31 - 1 - 18
Termina: 6am del 1 - 2 - 18

So, I could work using the date value in MySQL and should not (as I'm thinking of doing) use each value of the date as a field in an X table.

    
asked by Victor Alvarado 30.01.2018 в 03:07
source

1 answer

0

echo date (d-m-y); php default method that brings the year echo date (A-H); php default method that brings the time

    
answered by 30.01.2018 в 05:09