Closed althaf004 closed 12 months ago
I made a small example: https://replit.com/@pimaj62145/SQLPage-Time-series-example?v=1
let me know if it helps
will this load the data from the db based on the date selected ? because in initial load for the todays date, even though there is value, it didn't get populated.
Yes, look at the code!
SELECT 'list' AS component, 'Events' AS title;
SELECT event_datetime AS title,
event_description as description,
'calendar' as icon
FROM events
WHERE event_datetime BETWEEN $Date AND date($Date, '+1 day');
The code is for SQLite, you'll need to adapt the syntax if you're using a different database.
yes i`m using postgresql.
You'll have to use postgres date and time functions, then.
Hi I have a table with date as a column. My requirement is,
Is it possible to achieve this with SQLPage. I tried to check with couple of examples, but couldn't find with this requirement.
Thanks Althaf