Questions tagged as 'date'

3
answers

Get all "Monday" in a range of dates

I need to get a list of dates whose days are "Monday" in a range of dates supplied, both inclusive. For example: If we pass the interval 01/05/2017 until 15/05/2017 the function should return:    01/05/2017       05/08/2017       05...
asked by 06.07.2017 / 14:45
1
answer

Date output format with DateFormat

I want to have the following date format when doing System.out.println() : 31/03/2016 . Since I pass the format in a String type in this way "31-03-2016" , I use the classes import java.util.Date; import java.text.DateFor...
asked by 01.04.2016 / 09:46
1
answer

SQL - Show date in "Lun dd-mm-yyyy" format

I've searched Stack Overflow but I can not find it. In SQL Sever 2008 I have a table called "tbltemp" with a field called "day", this field is DateTime type. When I consult direct dates on this field, it shows the following: Select day fro...
asked by 18.04.2017 / 21:33
1
answer

Insert a date before the scheduled date

I have a table called deliveries, within it 2 fields fecha_preparar and fecha_entrega . $fecha_prepararse = fecha_entrega - 4 dias INSERT INTO entregas (fecha_entrega, fecha_preparar) VALUES ('$fecha_entrega', '$fecha_prepararse'...
asked by 02.09.2017 / 07:01
2
answers

I can not translate the dates into Wordpress theme

I have the following site in Wordpress where I have doctors' records with the days in English and I want to change them to Spanish: link I tried the crazy Translate, I tried editing the .po files directly and even went to review the php files...
asked by 30.04.2016 / 17:41
2
answers

How to know if a date is over two months in JS [duplicated]

Good, I have two dates in string type, such as the following: var fecha1 = '2018-11-03'; var fecha2 = '2018-02-03'; And I want to know which is the most efficient code to compare those two dates and know if the difference of months is 2 o...
asked by 18.12.2018 / 11:31
7
answers

Change the format of the date I receive from YYYY-MM-DD to DD / MM / YYYY [duplicated]

I am a rookie, I have the following date: 2010-04-19 . I would like to convert this date to the format DD-MM-YYYY Example, my code. // "fecha" => $this->input->post(date("d/m/Y", strtotime('fecha')); $usuario = array( "n...
asked by 08.03.2017 / 17:01
1
answer

Javascript - Convert a Timestamp string to human date format

I have the following information: Timestamp: 1481751645.455596 I want to convert it to the following format: Wed, 14 Dec 2016 21:40:45 GMT. I used the following website: link to be able to verify that the Timestamp format that I show you...
asked by 15.12.2016 / 13:44
3
answers

Subtract dates in js [duplicate]

Hi, I would like to know how I can subtract two date objects. I have a variable date of birth and I want to subtract the current day in order to get the years of difference ... var f = new Date(); var xf = (f.getDate() + "...
asked by 09.04.2018 / 21:28
2
answers

Millennium change date format error

When reading the date of birth of the CURP, and formatting it ( yyyy-MM-dd ), when entering a CURP with date of birth (example: XXXX270503XXXXXXXX ) the formatter instead of putting the date as 1927-05-03 puts it as 2027-...
asked by 03.08.2017 / 00:14