Questions tagged as 'datetime'

1
answer

JPA with the Java 8 Date API

With the many enhancements to the new Java 8 DateTime API, how should I instantiate a Date for an entity in JPA? Is it possible, for example, to have a YearMonth field that JPA controls?     
asked by 15.07.2014 / 05:45
0
answers

How to convert the value reported by the If-Modified-Since header into a PHP date (and vice versa)?

The header If-Modified-Since displays the following format of return: Wed, 21 Oct 2015 07:28:00 GMT I need to compare this date in this header item with the date a file was created on my server, using the filemtime($arquivo)...
asked by 23.10.2018 / 15:48
2
answers

Using the DateTimePicker component with Time

I'm using the TDateTimePicker component. I placed the following value in the FORMAT property: dd / MM / yyyy HH: mm: ss Running in form if not "clicking" on component and changing values, example 21/09/2018 14:55:56 para 21/10/2018 20:55...
asked by 21.09.2018 / 20:21
1
answer

How to add a 0 to the left in a datetime

I need to be able to add a 0 left at the time that sql only takes 3 digits ie from midnight to 9 in the morning for the information to be sorted! Because if not the information I have is in the following order 0:00 1:00 10:00 am 11:00 a.m. 19...
asked by 06.12.2017 / 17:40
1
answer

Xamarin Forms - How to make Datime.Now dynamic?

How to make the Datime.Now dynamic in xamarin forms? I need time to keep running. In this case it is stopped. I have a Label that captures the data of a class Label Text="{Binding data}" TextColor="Blue" >HorizontalOptions="CenterAndEx...
asked by 08.09.2017 / 00:55
1
answer

Generate and format dates with Moment on Nodejs

I'm trying to use Moment to format dates in this way YYYY-MM-DD HH:mm:ss and would like to determine a time period between 00:00:00 p.m. yesterday and 23:59:59 today. Example: Considering today as 07/25/2017, it would look like:...
asked by 25.07.2017 / 22:46
0
answers

DateHora Formatting

I have a field in the DataHora database, my class is simple and has no annotation public DateTime DataHora { get; set; } I have these two fields on the screen for the user who will use a single field in the DB <div class="form-group"&g...
asked by 26.10.2016 / 18:24
1
answer

Format dates in sql

I have a program in the c # (Visual Studio) registry that contains a textbox to receive a date. Knowing that SQL writes the date in American format, how can I make the user type the date in Brazilian format and that date can be saved successfull...
asked by 21.07.2016 / 13:57
1
answer

Problems with Lambda and DateTime query

Hello, I have the following ActionResult code from my controller below: [HttpPost] [AuthorizedUser] public ActionResult Load(DateTime DataInicial, DateTime DataFinal) { var AcessoDominio = new SmartAdmin.Domain.Acesso(); var Collection...
asked by 12.10.2015 / 16:12
1
answer

Date Comparison PHP - dd / mm / yyyy [duplicate]

I'm wanting to do a date comparison in PHP of type: if DataStart & Date = DateTime + 3 days, do such thing. Otherwise, it does nothing. I tried something like this: if ((1/86400)*(strtotime($_SESSION['buscaReserva']['dataInicio'])-strtotime(...
asked by 23.06.2015 / 15:22