{
  "id": 20324664,
  "title": "Date shortcuts like +7, +2w and mon with SQLite date modifiers in a Uniface service",
  "url": "https://urgent.news/2026/11/16/date-shortcuts-like-7-2w-and-mon-with-sqlite-date-modifiers-in-a",
  "topic": "tech",
  "section": "Tech",
  "published": "2026-11-16T20:23:15.000Z",
  "source": {
    "name": "Dev.to",
    "slug": "dev-to",
    "url": "https://dev.to/f345345dfg/date-shortcuts-like-7-2w-and-mon-with-sqlite-date-modifiers-in-a-uniface-service-41i8"
  },
  "original_language": "en",
  "account": "In a Uniface customer application, a follow-up form contains a due date field that can accept both standard dates like 30.11.2026 and shortcuts such as +7 or +2w. These shortcuts display their meaning to the user.\n\nThe field supports expressions like today, t (tomorrow), tm (tomorrow), +7 (in 7 days), +2w (in 14 days), and mon (next Monday). If the day falls on a weekend or holiday from the app's holiday table, the label indicates this information as well.\n\nSQLite is used to handle the date calculations, where the date() function takes modifiers that cover various time units, except for parsing input dates. The DAY_INFO service operation takes the input string, generates a modifier string, and queries SQLite for the resulting date. In a second query, it builds the label based on the resulting date.\n\nThe app's existing date parser (PARSE_DAY) rejects impossible dates, such as 30.02. The DAY_INFO operation converts input dates into a modifier string for SQLite and then retrieves the corresponding date. Finally, it constructs the label based on the obtained date information.",
  "summary": "A follow-up form in a Uniface customer app has a due date field. Typing 30.11.2026 works, but most follow-ups are \"in a week\" or \"next Monday\". So the field now also accepts shortcuts and shows what they mean: Input Result shown today , t today tomorrow , tm tomorrow +7 in 7 days +2w in 14 days mon ... sun the next such weekday, never today 31.12.2026 , 2026-12-31 that date The label also says if…",
  "key_points": [
    "Uniface application uses SQLite for date calculations",
    "Supports shortcuts like +7, +2w, mon for due dates",
    "DAYINFO service converts input to SQLite modifiers"
  ],
  "editors_take": null,
  "illustration": null,
  "coverage": {
    "outlets": 1,
    "also_reported_by": []
  },
  "ai_generated": true,
  "disclaimer": "Summaries, key points and the editor’s take are written by software from other outlets’ reporting and may contain errors — always check the linked original."
}