Questions tagged as 'date'

3
answers

Convert positions of a string to date in java

I am working on a project that involves the manipulation of a string with a CURP format. Although the whole program is already working, I can not validate the dates since I do the following: inicialAPaterno=curp.charAt(0); inicialApa...
asked by 07.03.2017 / 23:28
3
answers

How to increase the days of an input date without counting on Sundays?

I have an input date where I put a date and another input date where N days appear after the day I fill in the first input date, but I want the N days do not count on Sundays. What I did until now that is easy is to increase the N days but co...
asked by 19.06.2017 / 04:57
3
answers

Problems saving PHP date

I have a project on the web and I am trying to save the complete date in the database but it is giving me a strange error, I do not understand what the error is. Note: Recently everything was going well because in my database in the field w...
asked by 19.12.2018 / 18:42
1
answer

add in bd a date 2 days after today without counting saturday and sunday in mysql php

I have an insert in mysql database of dates, I am using the date_sub command to add 4 days to the current date, $fecha_actual = now(); INSERT INTO TABLA_FECHAS (preparar, llamar) VALUES (' . $fecha_actual .',date_sub(' . $fecha_act...
asked by 08.02.2018 / 20:05
3
answers

How can I get the minimum and maximum date of a javascript fix?

I have this arrangement: var arr = ["2018-06-07","2018-06-30","2018-06-01","2018-06-21","2018-07-20"]; And I need to get the maximum and minimum date with javascript, I have tried with this function: var min = new Date(Math.max.apply(null...
asked by 20.06.2018 / 21:37
1
answer

Convert a date format to Java

I have a method to parse from an xml in the form of a string, to a Request object. But in the xml the date comes to me like this: 2009-06-12T00: 00: 00 + 02: 00 Then I do not know what format to give the SimpleDateFormat to be able to conv...
asked by 21.09.2018 / 10:13
1
answer

Error converting a String to an object Date formatted as dd / MM / yyyy

Good morning; I am trying to convert a String containing the following string 2017-11-29 , to an object Date with the format dd/MM/yyyy , however it throws an error when trying to do parse() .    java.text.P...
asked by 27.11.2017 / 17:45
2
answers

change PHP date format [duplicate]

When I make an INSERT in the bdd using a form one of the columns automatically generates the date in which it was made, the case is that it is stored with this format 2017-03-29 17:12:16 What I am trying to solve is to change the format t...
asked by 29.03.2017 / 17:36
2
answers

Subtract days correctly

Java offers me different variables to subtract days from a date such as: DAY_OF_MONTH DAY_OF_WEEK DAY_OF_WEEK_IN_MONTH DAY_OF_YEAR I have a method in which you subtracted days or months as I wish to a date, b...
asked by 10.08.2017 / 06:02
1
answer

Problem with dates in LARAVEL

I try to change the format of a date created by laravel with timestamps () that saves them in the format 2000-01-01 00:00:00. I have tried in the view (blade template) within the value of an input type date: date('y-m-d', strtotime($user-&g...
asked by 18.12.2018 / 16:21