Questions tagged as 'date'

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
1
answer

Date appearing in 1 post only

Hello everyone, I have a problem that when I make several postings the same day it would be the same date it only appears in the last post <articleid="post-<?php the_ID(); ?>" <?php post_class( 'cf' ); ?> role="article">...
asked by 10.12.2015 / 17:06
2
answers

Date format javascript

I was looking at the ISO8601 that talks about the format of string passed as argument to object date . On this site, the date returned is from yesterday. I'mpassingthe'2017-08-03'valuetothedateobjectanditreturnsmethedatefromyesterday,s...
asked by 03.08.2017 / 15:04
3
answers

Compare and replace index array

The problem is the following, I'm creating daily OS graphs, only coming from the day bank in English, I would like to replace each index with the Portuguese value My code public function osSemanal($id_company) { $periodo = date...
asked by 11.12.2017 / 18:03
3
answers

Angularjs Format date

How to format the date in the controller of input type="DATE"? I have this return in the controller ... Sat Aug 06 2016 00:00:00 GMT-0300 (Hora oficial do Brasil) Mon Aug 01 2016 00:00:00 GMT-0300 (Hora oficial do Brasil) You can format...
asked by 16.08.2016 / 00:54
3
answers

How to convert a String to Date in Swift

I get the date as following 2016-08-14T20: 38: 27.031-03: 00 as string, I would like to move to date in the default dd / MM / yyyy, I already searched the net for some solutions but were not useful     
asked by 16.08.2016 / 04:02
2
answers

Unparseable date: "2017-10-30T02: 00: 00.000Z"

I'm setting up a record where I pass a date and, upon saving, is showing this error java.text.ParseException: Unparseable date: "2017-10-30T02:00:00.000Z" at java.text.DateFormat.parse(Unknown Source) ~[na:1.8.0_144] at controller.saud...
asked by 29.11.2017 / 20:02
1
answer

Decrypting date

I have a panel, and it encrypts the date, and wanted to know how I can decrypt it to show on my site. Encrypted date: 1437619904 I wanted to put it in the normal way.     
asked by 24.07.2015 / 10:47
1
answer

How to get the date of a server instead of local server?

I made the following license form con.executaSql("select *from vencimento"); con.rs.last(); SimpleDateFormat df = new SimpleDateFormat("ddMMyyyy"); Date hoje = new Date(); String dataAtual = df.format(hoje); String dataSist...
asked by 17.11.2016 / 01:15
1
answer

Translate date format from English to Portuguese

I'm converting a String to Data SimpleDateFormat dateFormat = new SimpleDateFormat("EE MMM dd HH:mm:ss z yyyy", Locale.ENGLISH); Date convertDate = new Date(); String dd = c.getString(c.g...
asked by 25.10.2016 / 20:03