Questions tagged as 'date'

1
answer

Formatting Javascript Dates

Could you please help me out? I would like to use the function below in a logic that I am creating, but I would need the function below to return to me only the last week of the month, I can not understand how to make the changes in it to wor...
asked by 27.07.2018 / 17:27
1
answer

receive date from the datapicker as a Date

I placed on my site in asp.net the datepicker of this site and I want to receive the value as Date instead of String, so that it does not trouble with the date type of other countries. /* Brazilian initialisation for the jQuery UI date...
asked by 02.05.2018 / 17:37
1
answer

Gson Library Changing util.Date

When using the GSON library for JSON manipulation, I noticed that when parsers are done the date is being changed, it's tiny, but it's enough to break my unit test with JUnit . > Follow a sketch code to show the strange beh...
asked by 17.10.2017 / 22:12
0
answers

Set DataTable column data type to date

I have a DataTable that displays values coming from a SQL database, like this: <table id="tabelaLogs"> <thead> <tr> <th>Código</th> <th> Data &...
asked by 21.08.2017 / 02:02
1
answer

Modify Dates of each object - MONTH, YEAR

I have an app where I create a posting of for example 400 reais and before saving I set the creation date and how many times I have to do it. Then saved. And right now, unless I add the post to a% launch%. If I did it twice, I have to get the...
asked by 03.11.2016 / 00:41
1
answer

How to create an array with months

Good afternoon, I'm maintaining a code that shows a graph, the X axis presents the last 11 months and the current month, who wrote it manually entered the months and wanted to automate it, I thought to do it as follows : $meses = array(date(m)...
asked by 28.11.2016 / 16:40
0
answers

Problem deserializing Json object with VRaptor4

Good afternoon, people. I'm having problems deserializing object json with VRaptor4. Doing some testing, you notice a situation: I'm using curl only to test the service, but when I make this request ex: curl -v -H "Content-Type: applic...
asked by 06.05.2016 / 18:24
0
answers

Problem to convert date to Brazilian standard using JAXB

I'm having trouble converting xml to object using JAXB. The date comes in Sun Jan 30 16:08:23 BRT 18 format, and I want to convert it to the Brazilian format 12-08-2009 16:08:23 . JAXB conversion class: public class DateAdapter...
asked by 15.02.2016 / 19:50
0
answers

String to Date conversion via an html form

I'm having problems converting String to Date, here are the codes: Event: @Entity(name = "Evento") @Table(name = "evento_table") public class Evento { @Id @GeneratedValue(strategy = GenerationType.SEQUENCE) @Column private Long id; @Colum...
asked by 24.04.2016 / 13:43
1
answer

Google Chart - Displaying Different Dates

I'm developing some testing with the google chart API. And I'm having a rather peculiar problem. Code data = new google.visualization.DataTable(); data.addColumn({ type : 'date', label : 'Day' }); data.addColumn({ type : 'date', label : 'D...
asked by 02.07.2015 / 14:26