Questions tagged as 'date'

1
answer

Get the days of the week from a date - Javascript

Create a function that brings me the days of the week from Monday to Sunday : weekLabel(current) { const week = []; const weekFormat = []; current.setDate(((current.getDate() - current.getDay()) + 1)); for...
asked by 15.07.2018 / 19:56
2
answers

error when using the diff on dates with php?

I'm currently using the diff command in php to make a difference of two months, but that difference comes out but it's wrong it's not the correct one: Date today: 8-03-18 future date: 07-05-18 This is the result that I get:...
asked by 08.03.2018 / 17:48
1
answer

Laravel, show a user depending on the date (L-V)?

I want to do in laravel that shows a User depending on the day of the calendar. Suppose I have a DB with N users, and they must cover one day of guard in the L-V job in order of 1-N, ex: -Thursday 2 August: "It is up to you to guard the Us...
asked by 02.08.2018 / 21:26
1
answer

Intervals of time between records

I have a table that is composed as follows:    Schedules id int(11) pk uq nn ai inicio datetime nn default "CURRENT_TIMESTAMP" fin datetime null default "CURRENT_TIMESTAMP" tipo tinyint(1) nn default 0 eliminado tinyint(1) nn default 0...
asked by 12.01.2018 / 17:36
1
answer

Auto-increment in input type date in php with codeigniter

Hello! I need help for something that has been around my head for a couple of days and I can not see how to even start (I know, it sounds pretentious, but we all have passed sometime in this life). What happens is that I have 3 input's of...
asked by 19.12.2017 / 06:02
1
answer

mysql show the record that is current as of date

Hello friends could you help me? I have these records: +-----+------------+------------+ | id | date_start | date_end | +-----+------------+------------+ | 181 | 1511553600 | 1511899200 | | 186 | 1512158400 | 1512504000 | | 191 | 1512763200...
asked by 04.12.2017 / 23:31
1
answer

how to convert this date format Tue Jan 10 00:00:00 CST 1984 to format 10/01/1984 in jsf?

I have my variable DateNacimiento of Type Date to which I pass a date that comes from a WS of type XMLGregorianCalendar fechaNacimiento = DateUtils.convertXMLCalenarIntoDate(datosProbatorios.getDatosPersonales().getFxNacimiento()); but when...
asked by 26.12.2017 / 19:11
1
answer

Convert a date in format 1-Jan-2017 to 01-01-2017 format

I am trying to convert a date with the format 1-Ene-2017 and successively with every month, to the format 01-01-2017 . I get this date from a field called hidFechaFinal with the following code: function validaFechasAsign...
asked by 29.11.2017 / 19:34
1
answer

Arrangement of JQuery Dates

Someone who can help me make an arrangement of dates, with JQuery. I want to make an arrangement of dates "approximately 6 or more", from a given date, the date will be assigned by the user in an input, once the user selects the date: var...
asked by 22.11.2017 / 21:36
1
answer

Get rows that have a date greater or less than a certain date

I have an application in which I want to select from 2 timePickers the minor and major date, and then make a select * from using the dates as conditions. I have this: var select = "SELECT * from inventario where ifechaCompra > "+diarioFe...
asked by 28.07.2017 / 22:01