Kit MarketplaceSign in with GitHub

Dates in order

Reviewed

Refuses an edit that would make a row end before it starts.

by Kit · ships with KitVersion 1.0.0Runs inside Kit, in a sandbox
Add to Kit
  1. In Kit, open Plugins, then Add another way › A code plugin’s link or file.
  2. Paste this link. Kit shows what it may do before anything changes.
Moving End before Start is refused: “Not saved. It would end before it starts.”
Moving End before Start is refused: “Not saved. It would end before it starts.”

Stops a date range that ends before it starts.

What it does

Whenever someone changes Start or End, it checks them. An edit that would make a row end before it starts is refused, and says why, so the mistake never lands.

How to use it

Add it to any database with date columns called Start and End. That's all.

Good to know

  • It only reads: it refuses an edit, but never changes one.
  • Rows that are wrong already stay as they are, until someone edits them.
Its code7 lines, exactly as Kit runs it · fingerprint d0cc26207d66
// Reads the properties called Start and End.
plugin.validate = (row) => {
  const start = row.values.Start && row.values.Start.start;
  const end = row.values.End && row.values.End.start;
  return start && end && end < start ? 'It would end before it starts.' : null;
};

Versions

  1. 1.0.0Listed nowNov 19, 2026