1
I’ve been looking for Html5 settings for the date attribute to display the date in the format we used in Brazil (dd/mm/yyyy), but it doesn’t seem to have any extra settings for this. In some tutorials the default format is already this, but my calendar is displayed in the default yyyy/mm/dd. Any solution for this?
<html>
<head>
<meta charset="UTF-8">
</head>
<body oncontextmenu='return false' onselectstart='return false' ondragstart='return false'> <!-- Não deixa o usuário clicar com o botão direito na página -->
<div class="container clearfix">
<?php
include "header.php";
?>
<div class="conteudo_painel">
<h1>Painel do Cliente - <?php echo $_SESSION['nome_cliente']; ?></h1> <!-- Nome do cliente para mostrar no painel -->
<!-- Div sobre o boleto -->
<div class="segunda_via">
<h2>2ª via do boleto</h2>
<h4>Escolha a data que efetuará o pagamento:</h4>
<form method="post" action="?acao=confirmar">
</br><input type="date" id="data" name="data" maxlength="10" size="" OnKeyPress=" formatar('##/##/####', this)">
</br><input type="image" src="img/gera_boleto.png" value="Confirmar" id="gera_boleto">
</form>
</div>
<?php
} else { //caso o boleto não tenha vencido e o cliente não tenha pago, mostra o boleto primeira via
?>
<div class="boleto_itau" >
...
Read here http://stackoverflow.com/questions/7372038/is-there-any-way-to-change-input-type-date-format
– Leandro Curioso
I tried it here in the Brazilian standard. Have a look here. http:/jsfiddle.net/Ls8gxzk7/
– Marconi
Hello, Try this way using the jQuery UI library: Example: http://jsfiddle.net/uLnrd6pu/
– user30130