Questions tagged as 'datetime'

1
answer

Obtain total hours from a range of dates that meet time intervals in php

How can it be done in PHP to get the number of hours from a range of dates that meet a time interval? For example, having the range of dates: SUBIDA = 2017-01-02 01:00 - BAJADA = 2017-01-02 22:00 And knowing that the intervals are: DE 00:...
asked by 16.03.2018 / 13:41
0
answers

DATE TIME FILTERING BY MINUTES

Im triyng to filter a gps location data.frame. I have gps locations obtained by 5 mins interval and other obtained by 1 second interval (and consequently the same minute is repeated along with dataset eg 2010-12-14 10:12:23; 10:12:24 and so on....
asked by 09.03.2018 / 19:45
1
answer

Save date in MySQL in c #

I'm doing an ABC project in Windows Forms through visual studio, and after several forms I need to save the date, however, at the time of saving the connection is not successful (the connection works well with other forms that do not require the...
asked by 11.03.2018 / 03:58
0
answers

Odoo datetime default value for time 00:00:00

I have the following field in an Odoo V10 model starting_date = fields.Datetime('Starting date', default='2018-01-01 00:00:00') and I want the value of the default to take the current date but that the time is the 00:00:00 or any oth...
asked by 30.01.2018 / 12:29
0
answers

Move the date with Jquery from a datatimeField generated with Django

I have a view that has a datetimepicker that I generate with Django such that: class una(forms.Form): start_edited_date = forms.DateTimeField(label="Fecha inicio", widget=DateTimeWidget(usel10n=True, bootstrap_version=3), required=False) end_e...
asked by 06.02.2018 / 19:23
1
answer

Javascript: Set default value using DateTimePicker

Using JQuery within Angular with the following code: $('#fecha_ingreso').datetimepicker({ defaultDate: new Date('08/08/2012') }); HTML: <input type="text" class="form-control" id="fecha_ingreso" formControlName="fech...
asked by 28.12.2017 / 21:16
1
answer

Problem with character '\ n' when interpreting a date

Dear, I have a code to change dates of type string in a text file to a list of dates of type datetime : import datetime as dt import workdays Holidays = open("C:\holidays.txt").readlines() print (Holidays) dates_list = [dt.dateti...
asked by 22.11.2017 / 16:59
0
answers

Android - Show Current Date in my Android Studio Activity and send it to SQLite

Greetings friends how are you, I would like to see if you can help me with this detail for my class I have my activity ready and I am creating my java class to show the date and time and also enter a data of an event Code below...
asked by 28.11.2017 / 08:14
0
answers

MySQL distinct from field type DATETIME

I have a list with data selected from date, the date field is of type DATETIME. FECHA 15-08-2017 14:41:12; ID 150; DATO 80 Out of a total of 1000 records, it is necessary to know how many times the value of the DATA field changed and what v...
asked by 15.11.2017 / 01:00
0
answers

change date format in php

I have a code where I entered a specific dates that I uploaded with a pdf form, the case is that the format has to be in plan    November 20,2017 but when inserting the dates and calling them to the pdf, they remain like this    2017-1...
asked by 20.11.2017 / 18:28