Questions tagged as 'date'

0
answers

Julian calendar with wrong date

I made the following program based on one of my scripts that does other calculations but the same is returning wrong dates for the Julian calendar, because March 14, 1964 falls on Friday, and 29/03/1987 falls on Saturday and 29/02/2000 falls on...
asked by 19.12.2017 / 05:41
1
answer

Problems with Google Gson: Unparseable date: "Apr 19, 1991"

Work with Google's Gson to persist and retrieve Java Objects. I use this code to create and format Gson, in order to prepapake it to receive certain date formats, which comes from forms and the database. Gson g = new GsonBuilder().registerType...
asked by 27.12.2017 / 19:27
1
answer

Capturing Date Retroactive

I have the following question. I have to capture two dates, one being today and the other being 15 days behind. To get the date of the day I did the following. function dateFormat() { var initialDate = new Date(), day = initialDate.getDate(),...
asked by 12.12.2017 / 21:06
1
answer

Function that turns the date into Brazilian and American format? [duplicate]

How would a function that when called make any date (valid) to the contrary? For example, I typed: 21/04/2017 will return as 2017/04/21 ; If I type: 2017/12/31 will transform to 31/12/2017 ;     
asked by 22.11.2017 / 17:26
2
answers

how to save date with Date type in MYSQL and return to an Android app

Hello, I have an Android application that takes the date from a DatePicker but I am not able to convert it to the type accepted by MYSQL in the Date case how could I do this?     
asked by 13.11.2017 / 10:56
1
answer

Convert java.util.date to java.sql.Date

With this line of code will I be able to pass java.util.Date to java.sql.Date ? java.sql.Date sqlDate = java.sql.Date.valueOf(String.valueOf(date)); Given that you date this format: Sat Jul 01 00:00:00 GMT+01:00 2017     
asked by 13.07.2017 / 17:35
1
answer

How to check if a time interval has conflicting dates with another time interval in php?

I'm building a system in php to check if a certain time interval has dates conflicting with another time interval. Is it possible to do this? Example: I have two date ranges: 05/10/2017 until 05/15/2017; and 4/18/2017 to 10/23/2017. I wa...
asked by 04.11.2017 / 18:29
0
answers

Problem saving month - MySQL Workbench

Good afternoon, I am doing a project management project and I have in the registration form, two date fields, when I enter, when I consult the bank, the dates appear with the wrong month, all indicate month 1. This is the save button code:...
asked by 16.10.2017 / 20:07
2
answers

Subtract days from an input date with javascript

I need to get a data from a type number field and add it to a date of input date. I already have, but I must now take the result of that date and subtract 14 days, but I can not do it. I'm a beginner and I need to do this, please help me....
asked by 11.01.2017 / 17:29
0
answers

Date field register date

I have a table that one of the fields is type date. In my insert.asp page when I type the date for example so 10/07/2017 or 2017-07-12 does not save in the MySQL database. The error that is shown is this:    Error: [MySQL] [ODBC 3.51 Drive...
asked by 12.07.2017 / 16:21