Guide · Beauty and cosmetics

Enter expiry dates a year or two ahead without clicking through the calendar

How the 1 month to 2 years shortcuts under the expiry date work in Datima Expiry Management, the rules behind a tap, and what they leave alone.

An Add batch form with an expiry date field and a line of shortcuts reading 1 month, 3 months, 6 months, 1 year and 2 years.
On this pageThe problem: far-off dates are many clicks awayWhat the shortcuts areThe rules behind a tapA worked example (illustrative)What the shortcuts do not changeNext step

A merchant who sells face creams, serums or pantry staples receives a carton whose label says the product is good for another two years. Recording that batch means entering an expiry date a long way from today, and a calendar built to step one month at a time makes that slow. Datima Expiry Management now puts five shelf-life shortcuts under the expiry date field. This use case explains what they do, the exact rules they follow, and the situations where you still type or edit the date yourself. It is based on the shipped feature and the app’s batch guide; it does not report results from a particular store.

The problem: far-off dates are many clicks away

Shelf lives vary a lot across the catalogue. Fresh and chilled food is measured in days or weeks, pantry food and coffee often in months, and skincare, cosmetics and supplements frequently in one or two years. The calendar in the Shopify admin’s date field offers only Previous month and Next month, with no month or year picker, so reaching a date eighteen months ahead is eighteen clicks. Typing is possible, but the field accepts only the YYYY-MM-DD shape: a date typed as 05/15/2027 or 15.05.2027 is mangled as the field masks the digits. A batch with a half-typed date is refused with a message asking for the date as YYYY-MM-DD, or for the date to be removed.

What the shortcuts are

In both the Add batch and the Edit batch form, a subdued line sits under the expiry date field:

Expires in 1 month · 3 months · 6 months · 1 year · 2 years

Each span is a link. One tap fills the field, and the calendar opens on that month, so adjusting the day is a single click rather than a long walk through the months. In the edit form, a tap replaces the batch’s existing date.

Which shortcut suits which stock (illustrative)
ShortcutTypical fit
1 month, 3 monthsFresh, chilled and short-life food
6 months, 1 yearPantry food, coffee and tea, some supplements
1 year, 2 yearsSkincare, cosmetics and other long-life goods

The table is a rule of thumb for choosing a starting point, not a statement about any product’s real shelf life. The date on the carton, the label or your supplier’s paperwork is what you record.

The rules behind a tap

  • Counted from today, not from the received date. The line reads “Expires in”, so the date is today plus that period, in your browser’s local calendar date. If the carton arrived three weeks ago and the label counts from its production date, change the day in the calendar afterwards.
  • The day of the month is kept, and clamped at month end. A shortcut pressed on 31 January with “1 month” gives the last day of February (28 or 29). The same clamping applies to 31 August plus 6 months. Pressing “1 year” on 29 February gives 28 February.
  • The five values are fixed. They are not configurable. For eighteen months, tap “1 year” and step the calendar six months forward: far fewer clicks than stepping the whole way.
  • Remove date still works. After a tap, the field shows the date and the usual Remove date control appears.

A worked example (illustrative)

Suppose a skincare shop receives 48 jars of a night cream. The carton label shows a best-before date roughly two years out, and the merchant does not want to click through the calendar.

  1. Open Products, find the product and press Add batch.
  2. Tap 2 years under the expiry date. The field now shows today’s date two years ahead.
  3. Compare it with the carton. If the printed date is a different day or month, open the calendar, which is already on the right month, and pick the day. For a date that is a few months off, step the calendar the remaining months.
  4. Enter the quantity, 48, and an optional lot code or bin, then save.

This walkthrough is an example of the steps, not a record of a test; the outcome you should see is the batch listed with the date you set, as described in the batch guide.

What the shortcuts do not change

  • Bulk edit. The Set expiry date form in the bulk bar has the same date field and does not carry the shortcut line. See bulk edit for setting one date across many products.
  • CSV import. Dates in a spreadsheet are plain text and remain untouched by this feature; follow the format in the CSV import and export guide.
  • The rest of the form. A batch with a lot code and no date still saves as an undated batch, as described in batches without an expiry date.
  • Typing. If you do type a date, use YYYY-MM-DD.

Datima records and sorts by the date you enter. It does not decide how long a product is safe or lawful to sell, so use the dates on your labels and your own food, cosmetics or supplement rules.

Next step

Take the next delivery with a long shelf life and enter it with a shortcut, then check the date against the carton before saving. For the bigger picture of why dates drive the dashboard, markdowns and sale order, read batch expiry dates in Shopify.

Written by the Datima team

Practical guidance from the team building Shopify apps for product presentation and stock management. About Datima.