Questions tagged as 'date'

1
answer

Long or Date in JSON

Applications, one server and multiple clients, POST and GET to the server exchange JSON objects. One of the variables that goes along with JSON is datahora atual , I see different Strngs to represent d...
asked by 07.06.2017 / 18:03
1
answer

How to convert dates in varchar to date in SQL 'Firebird'?

How can I convert dates to varchar for date ? I'm having difficulty performing cross-date searches because of this discrepancy in the database where I query. When I enter my line of code: select * from TAB_FATURAMENTO where cd_cliente li...
asked by 02.06.2017 / 14:14
1
answer

Find data between a period in a table with start date and end date fields

I have a problem fetching data in a table with start date and end date fields between a period (a -filter) The sample data is: ID - INICIO - FIM 1 - 01/01/2017 - 31/12/2017 2 - 10/01/2017 - 01/02/2017 3 - 01/05/2017 - 01/06/2017 4 -...
asked by 08.06.2017 / 17:42
1
answer

Perform a search from a certain date

I'm reading a csv file that generates data when a particular page was accessed. However I am not able to implement a method that allows me to perform the search from a date that I wish. Follow the code import java.io.BufferedReader; import jav...
asked by 31.05.2017 / 01:49
2
answers

How to humanize a date in PHP

How to humanize a date in PHP? For example, from that date 2015-08-20 , I want the function to return Há uma semana , because it's strange to read something like foi publicado há 754 dias or publicado há 38 semanas .   ...
asked by 30.08.2015 / 00:19
1
answer

Insert date in bd with JDBC Google Script

I'm trying to write to the database (MySQL) a lot of data, but in the data of type date the execution of the following error:    Can not find setTimestamp (number, string) method. (line 32, file "Code") The code is: var data = Utilities...
asked by 18.04.2017 / 21:15
1
answer

Javascript Sharepoint Compare field Date with Date Today

I have a list in sharepoint with the code below: I need to compare the date field "Data_x0020_de_x0020_Delivery" with the current date "today", but by the code below is comparing only the first digit of the date, for example, if today is 3/3/201...
asked by 03.03.2017 / 21:47
0
answers

Format all Date objects in CakePhp 3

In my database I have some fields with type Date. Therefore the data is stored in '2016-01-23' format. However, when I retrieve this data to display it in VIEW, it appears in '23 / 01/16 'format and needs to be left in '23 / 01/2016' format. I k...
asked by 08.02.2017 / 19:28
1
answer

Error in php date function? [duplicate]

I have the following problem, my date field in the form is configured as per the code below <script> jQuery(function ($) { $("#txtVencimento").mask('00/00/0000'); }); </script> And I get the same in the following v...
asked by 18.01.2017 / 20:33
0
answers

After the formatting the date appears with 3 hours more

I had a problem turning a String into a date, and I was able to put it in the exact time, but now when I went to generate the notification, the blessed date appears with a few more hours, I did everything I thought it could be but not I get the...
asked by 27.09.2016 / 02:28