Why Use a Custom Date?
Different Islamic communities may begin Ramadan on different dates based on:- Local moon sighting: Some communities follow physical moon sightings rather than calculations
- Different calculation methods: Various Islamic organizations may declare different start dates
- Geographic variations: Moon visibility varies by location
- Following specific authorities: Your community may follow a specific Islamic authority’s declaration
The custom first roza date feature lets you align Ramadan CLI with your community’s actual observance while still getting accurate prayer times.
Setting a Custom First Roza Date
Use the--first-roza-date flag with a date in YYYY-MM-DD format:
Date Format
The date must be in ISO 8601 format:YYYY-MM-DD
Validation
The date is validated to ensure it’s a real calendar date:How Custom Dates Work
Persistent Storage
Once set, the custom first roza date is saved to your configuration file:~/.config/ramadan-cli/config.json (or $RAMADAN_CLI_CONFIG_DIR if set).
Automatic Roza Number Calculation
With a custom first roza date, Ramadan CLI calculates the current roza number based on the number of days since that date:- First roza date: March 1, 2026
- Today’s date: March 15, 2026
- Roza number: 15 (15 days since start)
Calendar Generation
When a custom first roza date is set, the full calendar is generated by fetching prayer times for 30 consecutive days:Using Custom Dates
View Today with Custom Date
The Hijri date shown in the output comes from the API’s calculation, which may differ from your custom Gregorian start date. The Roza number is what’s calculated from your custom date.
View Full Calendar with Custom Date
Specific Roza with Custom Date
JSON Output with Custom Date
Clearing the Custom Date
Use the--clear-first-roza-date flag to remove the stored custom date and return to API-based Hijri calendar:
Precedence and Storage
Configuration Resolution
Where It’s Stored
Default location:Viewing Stored Configuration
Before Ramadan Behavior
If the current date is before your custom first roza date:When before Ramadan, the CLI shows timings for the first roza and calculates the countdown to the first Sehar.
After Ramadan Behavior
If the current date is more than 30 days after your custom first roza date, the CLI still uses your custom calendar but annotations may not appear:Performance Considerations
API Calls
- Standard API Calendar
- Custom Date Calendar
1 API call to fetch the entire Hijri month 9 (Ramadan)Fast ⚡
Caching
The custom first roza date is cached in your config file, so you don’t need to specify it on every run:Common Use Cases
Following Local Masjid
Different Calculation Methods
Testing Future Ramadan
Resetting Everything
To clear both the custom date and all other configuration:- Saved location
- Prayer calculation method and school
- Custom first roza date
- Timezone preferences
Country-Specific Recommendations
Even when using a custom first roza date, Ramadan CLI still applies country-specific recommended calculation methods:Related Features
- Ramadan Calendar - How the calendar is displayed
- Output Modes - Different ways to view your custom calendar
- Location Detection - How location affects prayer time calculations