Questions tagged as 'date'

1
answer

Remove date from EditText and add five years

I would like to capture a date with a EditText , and from it create another date by adding another 5 years. How could I do that?     
asked by 04.01.2018 / 18:01
1
answer

Working with Data in ngInit

I have an input on my date form. Whenever the user modifies the date, it will be updated in Django and will return another date. When the user enters the screen, I already bring the date as follows: 1996-10-01 Input <input ty...
asked by 31.10.2017 / 16:27
1
answer

Conversion to int with static_cast in c ++

Doing a search found something related to this error. I have the following error below:    ERROR: date.cxx: In member function 'int   CurrentDateTime :: GetMonth (const string &) ': date.cxx: 125: 18: error:   can not convert 'const Month...
asked by 13.09.2017 / 20:09
1
answer

Dates Array of the Year

In JavaScript, how do you work with a period spanning day, month, and year at the same time and at one time instead of using New Date () to get day, month and year individually and creating rules? The idea is to work with a range of dates to...
asked by 01.09.2017 / 22:17
1
answer

Contact Form - Send date 0000-00-00

Good morning, I made a contact form and I put one but when I put the date right example: 08/31/2017, I click to send the date comes as: 2017/08/31, I would like to leave as default of Brazil . My input: <input type="text" onfocus="(this....
asked by 31.08.2017 / 14:30
2
answers

How to call a function in the click of the Input Type="date"

Friends, I have an issue that I would be happy if you could help me. I have a calendar created with <input type="date"> of Html5 . I need that when clicking a specific date it takes the value of the date and calls a PHP functi...
asked by 18.08.2017 / 19:41
1
answer

Add + 1d to the current php date

I have the following date: $data = date("Y-d-m H:i:s"); I need to create the following date: $data_expira = date("Y-d-m H:i:s"); // adicionando +24h How can I add + 1d to the current date?     
asked by 20.08.2017 / 15:50
2
answers

Date Value 0000-00-00 can not be used in java Date

First of all, yes, I already added ?zeroDateTimeBehavi‌​or=convertToNull in the connection URL, the problem is that in the query the date zeroed does not come null and always releases the following Exception: java.sql.SQLException: Valu...
asked by 11.04.2017 / 14:22
2
answers

About Date in MySQL

I'm doing a program for a college job, with a connection to the database. In a table, I have a NASCIMENTO column of type DATE . In the program I have a MaskedTextBox to insert the date of birth, however I put our dates mea...
asked by 22.04.2017 / 03:38
1
answer

Date - date_trunc for PHP

PostgreSQL has a date function called date_trunc How can I play it in PHP? I only need the options: second minute hour day week month quarter year
asked by 30.10.2015 / 18:03