Questions tagged as 'datetime'

2
answers

Return today's date in C # in specific format

My output must be "2015-02-01" I tried to DateTime.Now.ToString("yyyy-m-d") , but it does not put the 0 between days and months.     
asked by 04.04.2016 / 02:31
1
answer

Difference between hours greater than 24 hours excel

How to calculate difference between hours in Excel when it exceeds 24h? Example: A1 = 05/01/2016 11:40:53 B2 = 06/01/2016 12:29:53 B2-A1 = 24h:49min However, it returns 00:49     
asked by 19.04.2016 / 22:50
4
answers

Sort DateTime field of a DataTable

Hello. I have the following DataTable: success: function (data) { $('#table-controle').html(data); $('#table-controle').DataTable({ "language": { "url": "../../../Content/json/...
asked by 23.08.2016 / 15:13
2
answers

Time calculation based on GMT and daylight saving time

I have a problem where I need to calculate the time in a particular place in the world. The calculation should happen and the only information I have in hand is GMT of the site. EX: -1, 2, -3, etc. I've created a class to calculate GMT-based...
asked by 10.12.2014 / 19:19
2
answers

How to transform a string in Date format into R?

In the code below the dates are in the format: Month Day Year. I need R to recognize the variable as date. #importa os dados library(XML) u<-"http://espnfc.com/team/fixtures/_/id/205/season/2012/brazil?cc=3888" tab<-readHTMLTable(u,heade...
asked by 06.03.2014 / 02:13
1
answer

Conversion of date string to datetime C #

I have a method that will receive a string in the format "June 15, 2001", for example, which is equivalent to the date to be compared, I need to pass this string to a DateTime, how would I do this conversion?     
asked by 09.06.2015 / 16:08
4
answers

Convert string to Time

I have a column in the database that receives a type varchar that corresponds to the hours in my application ( "HH:MM" ). I need to convert this string to a type TIME and then concatenate it with a type DateTime . Ha...
asked by 14.04.2014 / 16:52
1
answer

Compare two dates

I have two string containing dates dataSalva and dataDoDia and I'm wondering if dataDoDia and 5 days greater than dataSalva how do I do this SimpleDateFormat dateFormat = new SimpleDateFormat("dd/MM/yyyy");...
asked by 22.12.2014 / 14:11
1
answer

How to schedule a Javascript event?

Information: I would like to know how to do Agendamento of an event, ie any function I would pass as a parameter, which would execute such dia tal mês : ano that I would also pass as a parameter. Example: agenda...
asked by 11.02.2014 / 18:51
2
answers

How to compare Date class with System.currentTimeMillis () in Java?

How to compare if a Date object, for example "2014-01-29 00:00:00" is greater than the current system date, for example System.currentTimeMillis() in Java? I'd like to do something like the snippet below, but it did not work: if (obj...
asked by 29.01.2014 / 19:41