PixelDock
← All guides

Dates, durations and working days answer different questions

Avoid daylight-saving surprises and end-of-month mistakes in everyday date calculations.

Calendar days are not elapsed hours

From one date to the next is one calendar day. Between two local midnight instants, the elapsed duration can differ when a time-zone offset changes. PixelDock’s date calculator uses UTC dates for day counts; the time-zone tool converts a specific UTC instant. Choose the tool based on the question rather than treating all date-looking inputs as equivalent.

The leap-day check

From 2024-02-28 to 2024-03-01 is two days because 2024 contains February 29. Adding one calendar month to 2024-01-31 produces 2024-02-29 in this tool. The offset clamps to the last valid day of the destination month. Adding the month back is not necessarily reversible, so retain the original date if your application needs it.

Define your working week

A working-day count needs an explicit weekend. Choose Saturday/Sunday, Friday/Saturday, Friday only, Sunday only or no weekend. Add excluded Gregorian dates one per line for your own holiday list. The tool does not know your employer’s schedule, local observances or half-days. The start date is excluded unless you select Include the start date.

Separate a calendar view from an event

Changing the displayed calendar changes the day labels, not the underlying selected Gregorian date. Islamic civil is a tabular calendar and may differ from local moon-sighting dates. Export selected day creates one all-day .ics event with an exclusive next-day end; it does not create a subscription or connect to your calendar account. Review it before importing.

References

Intl.DateTimeFormat documentation

Put it into practice.

Open the tool