Questions tagged as 'datetime'

1
answer

Format table date mysql and show in Smarty

I'm developing a page in PHP, using MVC structure and rendering the tamplete files with Smarty. However, you have been struggling to get a date via MySQL (see the format: YEAR-MONTH-DAY HOUR: MINUTE: SECOND I'd like it to appear in the fol...
asked by 16.10.2016 / 05:30
1
answer

Insert date and currency data of a maskedTextBox in MySQL

When trying to insert the data entered from a maskedTextBox object, one of type data and another of type currency, in MySQL database, where I have a table named test, created according to the command below: CREATE TABLE 'teste' ( 't...
asked by 01.05.2016 / 23:16
1
answer

Format date for Brazilian format using webservices

How to format a date timestamp for timestamp br. ex. 2015-02-03 15:37:00 para 03/02/2015 15:37:00 obs: date is text     
asked by 25.04.2016 / 20:40
1
answer

Problems working with dates in the database using a maskedtextbox in the format dd / MM / yyyy

I'm using a MaskedTextBox in the en-BR culture to force the user to fill the date in the correct format (dd / mm / yyyy). Retrieve the string from the MaskedTextBox to insert into the database and record information containing the date of this i...
asked by 07.03.2016 / 21:20
2
answers

Format Date in javascript for "from here to Xd Yh zm"

Friends, I am trying to format a date in javascript to stay in the following format: In x days, and Hours, Z minutes. But my code is not working properly: dt = dados[i].Hora - dataAtual; // o valor está em segundos todos_min = Math.roun...
asked by 30.07.2014 / 15:15
0
answers

Build date with Classic ASP

People, I need to return a table of data, depending on the date that the user chooses. But I need to separate the reference month and the day. I put it to print a paragraph to test if the date function is working, but there is something wr...
asked by 13.12.2018 / 16:39
0
answers

Error in tzdata does not let the application in phoenix start in localhost

Hello, I'm trying to run an application in phoenix and I'm getting an error in tzdata when trying to start the local server, I'm inexperienced in development with phoenix, a help would be very welcome, it follows the error returned when running t...
asked by 07.11.2018 / 14:38
0
answers

Carbon producing inconsistent results

Correct $datSuspensao = Carbon::parse($objAlt->dat_inclusao)->addDays(8)->startOfDay(); $datNow = Carbon::now()->startOfDay(); $diasRestantes = $datNow->diffInDays($datSuspensao, false); dd('($datNow ' . $datNow ....
asked by 23.10.2018 / 17:54
1
answer

Get the time in from an excell worksheet

I'm using the POI api in Java. To get the time in an excel spreadsheet. In the excell spreadsheet the data is as text Image : publicvoidobterHora(){Cellhora=row.getCell(7);System.out.println("hora: "+hora); }    result: Dec 31, 1899...
asked by 05.10.2018 / 15:40
1
answer

Sql. table, date and time organized

I have a sql table that will contain appointment, date and time. I keep all three based on ID. I have a question regarding date and time. id = 0; data 28/08/2018 - 13:11h id = 1; data 26/08/2018 - 17:10h id = 2; data 25/08/2018 - 11:15h I...
asked by 25.08.2018 / 02:29