Replies: 1 comment 2 replies
-
I solved it... The problem was (and is) that I store the dates on a bad format (DD/MM/YYYY), and when I try to load it, well it doesn't load. I converted the date as shown here: SELECT
'Fecha de creación' AS label,
'date' AS type,
'fechaticket' as name,
SUBSTR(FECHA_TICKET, 7, 4) || '-' ||
SUBSTR(FECHA_TICKET, 4, 2) || '-' ||
SUBSTR(FECHA_TICKET, 1, 2) AS value -- Chapuza porque guardamos los valores en el formato DD/MM/YYYY y para que SQLite3 pueda procesarlo con sus funciones nativas tiene que estar en YYYY-MM-DD HH:MM:SS o similar.
FROM TICKETS
WHERE TICKETID = $ticket; |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi!
I'm trying to create a form to edit data.
In the table that I manage to store the data, there's a date type column:
The "FECHA_TICKET" (ticket date in spanish) column is one of the columns that I want to preload into the form.
Here is the actual query:
And here is the result:

But, this happens when I change the type of the row:
The date doesn't load into the field.
How can I manage to load the date into the date picker?
Beta Was this translation helpful? Give feedback.
All reactions