Questions tagged as 'datetime'

1
answer

VB.net Wrong format when sending DateTimePicker

I am doing a program in .Net , to automate the loading of data in a web page (which I can not modify the code). The problem happens when I send the date to the web. As you can see in the following code, you should send the date in the format...
asked by 27.05.2016 / 18:12
2
answers

How to subtract hours from a DateTime?

I have a DateTime and I need to subtract hours from one column to the other. For example, I want to subtract 12:45:00 - 12:25:00 and have the result 20 . This is the code I'm using for (int i=0; i<n; i++) {...
asked by 13.12.2018 / 04:13
1
answer

Date.UTC configure javascript time zone

I am entering data to a graph, what happens when I bring the data and enter it in the Date.UTC function it adds me one more month giving me an erroneous date example: Date.UTC(parseInt(val.year),parseInt(val.month),parseInt(val.day), parseInt(...
asked by 08.10.2018 / 15:57
3
answers

SELECT between two dates

I am trying to do a SELECT that brings me all the records that are between two dates. However, I want to ignore the time (hours, minutes, seconds, etc ...). For example, I have a record that has 2016-11-14 11:47:56.207 , but I send...
asked by 15.11.2016 / 16:43
2
answers

How can I take a data from a DB and add it to another DateTime data in C #?

My question is this: I am using Visual Studio 2015 , and I am programming in C # for Windows Forms , the case that is I have a variable that is stored in a database of SQL Server 2008 , and the data that is there is of type int . What...
asked by 08.11.2016 / 20:37
2
answers

How to subtract a specific time with the system time in php?

How can I make the $ total variable give me a result in hour format? Now with this code, the only thing I achieve is to subtract the hours, but not the minutes, and it only shows me a number. example: 07:45 - 03:35 = 4. I would like instead of g...
asked by 13.06.2018 / 03:22
2
answers

Doubt with moment.js

I have a question about the use of moment.js, the question is, if today I put a date and time for example 03/14/2018 at 01:00, I usually keep the UTC time in the database to then format it to the date / time that corresponds depending on the reg...
asked by 14.03.2018 / 10:50
3
answers

Convert hours to minutes

I would like to convert a data in horas format in minutes using JQuery Data to convert var hora='3:19:00'; result var nuevoDato= '199';     
asked by 01.02.2018 / 23:56
1
answer

Check only the current month

I have an invoice which will be filled in monthly, the records with the date do it correctly at Hora de Caracas/Venezuela , but in the following script it shows the values of example 05/agosto/17 al 05/septiembre/2017 , which would c...
asked by 05.09.2017 / 06:46
1
answer

How to get the number of days, hours and minutes elapsed from a date? in C #

I have tried to get the days, hours and minutes of a date from this: DateTime fecha_actual= "26-07-2017 18:45"; DateTime fecha_ingreso= "25-07-2017 16:45"; TimeSpan ts = fecha_actual - fecha_ingreso int differenceInDias = ts.Days; int differen...
asked by 27.07.2017 / 00:42