3
I am creating an HTML date filter so that the SQL query can return a specific value to me.
I’m just trying to make it difficult to pass on this information because the form option needs to appear month as in <option>Março</option>
.
My SQL query looks like this:
select codigo, id_usuario, codigo_usuario, data, hora, despesa, valor, modo, observacao, estabelecimento, genero, tipo from despesa where id_usuario = 1 and data between '2015-Março-01' and '2015-Março-31' ;
I wish I could select in the form the option March and he change this month by the number 03, so I can do a select certinho.
I just wanted to know if there is an easier way to do this right in the HTML form.
Thank you.
Hello @David. Try putting code that supports your answer, even if it’s just an example. It’s easier to understand.
– João Martins
You’re talking about the input type date? Because if it is, not all browsers accept.
– Wallace Maxters
Buddy, you’re regulated by W3. https://www.w3.org/TR/html52/sec-forms.html#date-time-and-number-formats Stackoverfow in English is garbage !
– David Augustus