Questions tagged as 'datetime'

1
answer

Error TryParse of DateTime by converting string to Double format

I have a method that uses DateTime.TryParse to convert a string to type DateTime , but lately I realized that string with the format Double would also be being converted to date. Is there any solution to fix this? pu...
asked by 20.06.2016 / 14:50
2
answers

Format date and time return PT BR in PHP

I am using the strtotime function of PHP to format the date that comes in the SQL SERVER database and is working normally on the local server , but on the web it returns the date 12-31-1969 21:00 PM. Does anyone know why? (As it is recorde...
asked by 01.02.2017 / 15:30
1
answer

How to calculate 'end time' in Python?

qpd = int(input('Quantidade produzida: ')) # qpd = Quantidade Produzida qpg = int(input('Quantidade programada: ')) # qpg = Quantidade Programada qrs = qpg - qpd # qrs = Quantidade Restante qpc = qrs / 550 # qpc = Quantidade por Carro mrs = i...
asked by 15.09.2018 / 01:58
1
answer

Form with Date and Time - AngularJS

I have a form with the option to choose Date and Time. I am using the Datepicker and Timepicker components. <!-- Date --> <div class="col-xs-12 col-md-3 col-lg-3"> <div class="form-group"> <label>Data</label>...
asked by 17.11.2017 / 19:26
1
answer

DateTime UTC Daylight Savings Time NF-e

How can I change the time zone of a variable of type DateTime ? The idea is to do a routine where the user does not need to change the computer time to perform NF-e transmissions, but it is dynamic without having to punch the current ti...
asked by 08.11.2017 / 14:53
1
answer

sql search with higher and lower end date

My code should return values from the database, related to the current day (today), but only related to the month and day, I searched a lot but could not find something that would help me $data_atual = date("d-m"); $mostraDados = mysqli_query(...
asked by 13.10.2017 / 07:42
1
answer

Calculate percentage between 2 numbers

I have to do a percentage system where I have 2 dates in TIMEUNIX , the end date ($cota->ultimo_recebimento) and the current day that I get with the time() function of PHP. I tried to do this: <?php echo ((time() / $c...
asked by 10.02.2016 / 15:32
1
answer

As popular dropdwonlist with AM datetime value and another dropdwonlist with PM C # value

Question: How popular is a dropdownlist with value datetime AM and another dropdownlist with PM value in C #. private static void FillTimeDropDown(DropDownList dropDownList) { TimeSpan startTime = new T...
asked by 31.07.2018 / 16:50
1
answer

Wrong date format

I have a somewhat annoying problem and I have no idea where to go to solve or how to solve, it comes down to the following: The date on a system I'm modifying does not show in the view correctly. It looks like this: 0404/0606/2018181818 9:56...
asked by 04.06.2018 / 15:03
1
answer

DataFrame date column

I have this DataFrame and would like to separate the column from the date how do I do this? Data e Hora Consumo(litros) Valor Acumulado 0 2017-08-21 20:00:00 65 65 1 2017-08-21 21:00:00...
asked by 24.06.2018 / 02:21