Run a Cron Job Every Day at 10 PM
To run a job every day at 10:00 in the evening, use 0 22 * * *. Cron uses 24-hour time, so 10 PM is hour 22.
The expression
0 22 * * * runs at 22:00 (10 PM) every day.
Converting PM to 24-hour
Add 12: 8 PM = 20, 10 PM = 22, 11 PM = 23. Midnight is 0, not 24.
Late-night jobs
10 PM is a common window for nightly exports and report generation before the 3 AM backup runs. Stagger heavy jobs so they don't overlap.
FAQ
What is the cron expression for 10 PM daily?
0 22 * * * runs every day at 22:00. Cron uses 24-hour time, so 10 PM is hour 22.
How do I write midnight instead of 10 PM?
Midnight is 0 0 * * * (hour 0), not hour 24. Cron hours run 0-23.
How do I convert 10 PM for cron?
Add 12 to the PM hour: 8 PM = 20, 10 PM = 22, 11 PM = 23.