Skip to content
Discussion options

You must be logged in to vote
Answered by SQLPage Admin May 13, 2026

Hi @monsieurmerle !

In SQLPage, you can use the functions provided by the database you are connected to . Which database are you using ? By default, when you don't configure a database, SQLPage uses SQLite. The list of date and time functions supported by SQLite is documented here: https://sqlite.org/lang_datefunc.html . Similar functions exist in Postgresql and in MySQL.

In sqlite you could have a conditional alert like

select 'alert' as component,
    'Hurry up' as title,
    'Maintenance is due in less than two days !' as description,
    'red' as color
from maintenance
where
  id = $id AND
  datetime(due_date, '+0000-00-02') < current_date;

Replies: 2 comments 2 replies

Comment options

SQLPage Admin
May 13, 2026

You must be logged in to vote
1 reply
@monsieurmerle
Comment options

Answer selected by SQLPage Admin
Comment options

You must be logged in to vote
1 reply
@monsieurmerle
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants