Questions tagged as 'date'

0
answers

"Error" when loading data

I have a screen whose given "Reference Date" field receives the next available date from a file, following the dates that are in the database. On the side of the field I have a "calendar" icon which when triggered should load the calendar....
asked by 21.04.2015 / 16:57
3
answers

How do I know if the chosen date is smaller than the current date?

I need to issue an alert if the date you choose 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, partesData[0]).toDateString()...
asked by 16.08.2017 / 22:15
2
answers

PHP - Convert ISO8601 standard (used by YouTube) for seconds

I need to convert for seconds a time received in the ISO8601 standard, used by YouTube. Does anyone know of any function for this purpose? Exemplifying: If I took the YouTube API for the length of a PT1M31S video, I would like to c...
asked by 26.11.2015 / 22:06
4
answers

Which type is appropriate for field that saves hours in mysql?

I need to save a field that stores hours in the mysql database. It's a service register where I need to save the amount of hours for that particular service. When the service scheduling occurs at 11:00 am for example, the system adds hour...
asked by 12.10.2016 / 17:27
3
answers

Separate the zero of the dates

asked by 02.06.2017 / 21:56
3
answers

Convert Date to date field

I have a field that receives a date value as in the example: 24/10/18 . I need to replicate this field to one of date type but following the value rule that date requires. Example: 2018-09-24 . That is, convert date 24/10/18...
asked by 24.09.2018 / 17:38
4
answers

Problems formatting the date type returned from select

Good morning I would like you to help me with a small problem that I am trying to return from a select in php. I would like the return of my "Mes_Ref", from my select to be only month and year without the day and year being reduced. example this...
asked by 04.05.2016 / 16:51
1
answer

-1 month does not return to previous month - PHP

I used strtotime() to go back to the previous month and always take the last day of the previous month, I used to do this: $data_teste = date('Y-m-t', strtotime('-1 month')); And it was going on right up to today (31-10-2018), instea...
asked by 31.10.2018 / 15:33
2
answers

Update the echo on a page every minute

I'm displaying the time in the user pane with the code: <?php date_default_timezone_set('America/Sao_Paulo'); $date = date('d-m-Y H:i'); ?> Using the echo command: <?php require("includes/serverTime.php"); echo "<div class...
asked by 14.04.2016 / 00:53
2
answers

Only allow to select two days ahead

I would like a javascript function that would allow me to select only two days ahead of the current one. example: today is 06/28/2018 it allows me to select from day 3, because it would count day 29/06 as 1st day, would skip weekend and would co...
asked by 29.06.2018 / 00:18