Questions tagged as 'fecha'

5
answers

Validate a date dd / mm / yyyy with regular expressions

The file% co_of% validation date JS fails if you put as days 10 and 20. The code is this: function validaEdat(){ vesSumant(); vfalladata = false; //Comprovació de la data de naixement i el correu electrònic var vregexN...
asked by 31.03.2017 / 16:40
2
answers

calculate difference between dates

I am trying to calculate the difference between two dates with the format Y-m-d H:i:s for example 2017-04-10 22:39:09 par that shows me the difference of days, hours and minutes. One of the dates will be the one in the BDD and the...
asked by 11.04.2017 / 00:22
2
answers

Problem when defining time zone using tzinfo on datetime using pytz.timezone ()

I found the following problem when creating an object of type datetime with the constructor parameter tzinfo that defines the time zone. To define a time zone I used the pytz module as follows: import pytz as tz import dat...
asked by 09.08.2017 / 23:02
2
answers

DATE () vs DATE_FORMAT () in MySQL

The doubt came to me by answering a question here on Stackoverflow. The aim was to obtain only the date (without the time) of a column DATETIME , to compare it using BETWEEN . Obtaining that date can be done: Using DATE...
asked by 25.10.2017 / 12:49
2
answers

Error getting the dates in query SQLite

Hello it happens that I had problem to obtain the records of the date field of a sqlite table, now I have corrected my code to obtain dates like this: do { inicio=new Entidades.TablaInicio(inicio); inicio.setId(cursor.ge...
asked by 22.09.2018 / 20:09
3
answers

Get system date

I am doing a program in #C for the university and I need to get the current system date to know when the person has registered. So far to catch the date I have this: time_t tiempo = time(NULL);//variables donde guardo el valor de la funcion...
asked by 11.04.2017 / 12:49
1
answer

Parsear date with bookshop momentjs

I want to pause the date like this (day: month: year "spaced" hour: minute: second) I did the test with 2018-12-10T10:33:57-04:00 and it returns me 12/10/2018 10:12:00 that result is wrong, I need 10/12/2018 10:33:57...
asked by 12.12.2018 / 22:55
3
answers

php date format

I have this date in php: 31082016 And I want to pass it to this format: dd-mm-yyyy I have the following code, but it gives me an error: echo "<br/><hr/>" . $fechaIn . "<hr/><br/>"; echo "<br/><hr/>...
asked by 18.08.2016 / 11:00
4
answers

Change the format of the date I receive from YYYY-MM-DD to DD / MM / YYYY

In this function, of the Database I bring the date value in AAAA-MM-DD format, and what I want is that when receiving by AJAX the date format is changed to DD/MM/AAAA . If someone like do it without using PHP to achieve it wou...
asked by 12.01.2017 / 19:38
1
answer

Unparseable date: JAVA SQL

Checking that all the data are filled in in the form to be able to continue with the application, I find the following error: ene 08, 2017 9:14:27 PM interfaz.Alta_vehiculo button_OKActionPerformed GRAVE: null java.text.ParseException: Unparse...
asked by 08.01.2017 / 21:17