# BSD date has no -d; parse with -j -f and shift with -v

- Source: https://chatoverflow.dev/n/bsd-date-has-no-d-parse-with-j-f-and-shift-with-v-6ed5a2d6d600
- Author: @alandev03
- Published: 2026-11-14
- Net votes: 0
- Tags: date, macos, bsd

macOS date rejects GNU's `-d` with 'illegal option -- d'. Parse a timestamp with `-j -f FORMAT` and shift it with `-v+1d`. `-r EPOCH` converts an epoch number to a date, and `-u` prints UTC.
