Questions tagged as 'datetime'

1
answer

Difference of dates with calendar in a TextField

I'm developing a hotel system and would like to automate some features in the system. I would like, when you select two dates being dataEntrada and dataSaida using Calendar, make the difference of days in a TextField name...
asked by 28.04.2016 / 00:57
1
answer

Error getting time with row.getCell ()

I'm getting data from a worksheet in excel. public void Hora() Cell horaAgen = null; if(row.getCell(7) != null ){ horaAgen = row.getCell(7); System.out.println("hora: "+horaAgen); } } In the worksheet this: 9:00...
asked by 03.10.2018 / 20:18
1
answer

I want to convert Timedelta to float

I have a Dataframe in which one of the columns is the time interval in days between searching from one row to another, the data in that column is in the form Timedelta, as in the example: Timedelta ('61 days 00:00:00 ') I need to convert this...
asked by 23.10.2018 / 03:31
1
answer

How to turn Y-m-d to Unix timestamp at midnight in PHP?

Good afternoon, I need to convert the data from a form that comes in the form ex: 2018-02-13 to UNIX at midnight. If I convert normally using strtotime it comes right but with the time at 6:00 AM. Can anyone give a light? Thanks =)     
asked by 13.02.2018 / 17:46
2
answers

Date_format does not work in code

After following several Date_format instructions and operating guides, I preferred to ask for help because I tried everything and could not format the date and time output of the Mysql database. Does anyone know why this function does not work i...
asked by 29.02.2016 / 21:52
2
answers

Error in DateTime.TryParse

I'm having a problem converting using the code below: string vcto = "29/01/2018"; DateTime data; Boolean resp = DateTime.TryParse(vcto, out data); if (resp == false) { MessageBox.Show("ERRO...
asked by 28.09.2018 / 21:37
3
answers

How to put variables in dateTime (PHP)

Hello. I would like to know if I can put variables in the dateTime values. Example: new Datetime('$ano-$mes-$dia'); If yes, how?     
asked by 13.05.2016 / 01:17
1
answer

Scroll between two dates

I have two dates in milliseconds. I need to recover each day of that period to make an insert in the database. I thought about making a for every day of this period, but I have no idea how to do it!     
asked by 08.01.2018 / 21:41
3
answers

Validating and counting days of a date [closed]

Consider an informed date on a form. Build a function that checks whether the date is correct (considering leap year, April 31, etc). You need to pass the date entered on the form as a parameter. If the date is correct, build another function...
asked by 06.09.2017 / 04:54