Questions tagged as 'date'

3
answers

Trigger Oracle with sysdate

I have a trigger in a simple database, what I want that trigger to do is generate an id with characters and numbers, but it does not work. I hope you can help me, I thank you very much.     
asked by 26.09.2017 / 03:11
1
answer

Compare ISODate and two json ObjectId (JavaScript)

I would like to compare two jsons, but I have a problem with dates and objects. I do not know how I can convert them or compare them between two jsons to see if they are the same or not. JSON 1: { "_id" : ObjectId("85f8421445225...
asked by 06.09.2017 / 12:03
0
answers

getTime changes the dates on the date

I try to get the date I received it in a epoch format and print it on a table. If I put it directly (Date(Math.round(new Date().getTime(vencimiento[i])/1000.0))).toLocaleString('en-US') I get the correct date back, but if I try to sa...
asked by 16.11.2017 / 17:14
1
answer

Synchronize javascript-angular time with server time

Good, I have a php-based website and manages the client part with angular. My problem is that when someone enters with the time changed to the time of Spain or different time zone the function Date of javascript is not worth me since the countdo...
asked by 18.06.2017 / 14:17
0
answers

how to store any date in a java variable and save it in mysql

when sending it to the database I get the following error Data truncation: Incorrect date value: 'null' for column 'dateInscription' at row 1 the capture in visit1 String visit1 = request.getParameter ("txtVisita1"); and I send it to the databas...
asked by 18.06.2017 / 22:54
0
answers

Problem with carbon date

I get a date date of the database and when I show it, the day and the month are correct, but the year is not. This is how I get the date from the database: $fecha_ingreso = \Carbon\Carbon::parse($user->fecha_ingreso); //2016-05-05...
asked by 18.05.2017 / 22:53
0
answers

Update mysql row at expiration date

It is possible to create a function on the server side of the mysql database that automatically updates a row when a date field expires in comparison with the current date.     
asked by 28.05.2017 / 19:58
3
answers

Change the format of the current date with JQuery

I am currently showing the current date in this way: var date = new Date(); var time = date.getFullYear() +"-"+date.getFullMonth() +"-"+date.getDate() +" "+ date.getHours() + ":" + date.getMinutes() + ":" + date.getSeconds(); But the...
asked by 16.05.2017 / 16:43
1
answer

Date does not detect date change immediately from OS

I've done this little test with typescript and nodejs : setInterval(() => { console.log(new Date()); }, 3000); and while the script is running, I change the date in the system (Windows 10), and the script...
asked by 02.11.2016 / 19:28
0
answers

Display JDateChooser by pressing Enter on the text field

I am working on a project in which I include a JDateChooser . My problem today is to be able to make a JDateChooser expand by giving enter in the text field and manipulate it with the keyboard without having to use the mouse...
asked by 20.09.2016 / 15:56