Skip to main content
Bethemesh
GuideConcepts and technologies

ISO week, Unix timestamp and dates in computing: understanding time representations

Understand ISO 8601 week numbers, Unix timestamps in seconds or milliseconds, and the difference between human-readable dates and technical time values.

Published 28 August 2026Reading : 4 minBy Bethemesh Team
Intermediate
Show contents
  1. What is an ISO week?
  2. Why can the ISO year differ from the calendar year?
  3. Why do some years have week 53?
  4. What is a Unix timestamp?
  5. Seconds or milliseconds: a critical distinction
  6. Timestamp and time zone
  7. Readable date, ISO date or timestamp?
  8. Week number or date difference?
  9. Timestamp or calendar arithmetic?
  10. Choose the right Dates & Time tool

People talk about Friday, August 28, 2026, week 35 or 2:30 p.m. Software needs representations precise and regular enough to store, compare and exchange those values.

Two formats are especially common: the ISO week number, useful for organizing calendars by week, and the Unix timestamp, widely used by software systems and APIs.

They both describe time, but they solve different problems.

What is an ISO week?

ISO 8601 defines a consistent way to number weeks. In this system, the week begins on Monday and ends on Sunday. Weeks are numbered from 1 to 52, and sometimes 53.

The year attached to an ISO week can differ from the calendar year for a few days around New Year.

The ISO Week Number Calculator takes a date and returns its week number, ISO week-year, and the Monday and Sunday dates for that week.

Why can the ISO year differ from the calendar year?

January 1 always belongs to the new calendar year, but it can still belong to the last ISO week of the previous week-year.

Likewise, some final days of December may belong to week 1 of the following ISO year.

A useful way to remember the rule is that ISO week 1 is the week containing the year’s first Thursday.

For weekly dashboards, sprint numbers, logistics and data exports, keep the ISO week number and ISO year together. Writing only “week 1” is ambiguous.

Find the ISO week for a date.

Why do some years have week 53?

A calendar year contains 365 days, or 366 in a leap year. Fifty-two weeks contain 52 × 7 = 364 days.

One or two days therefore remain, and depending on their position in the calendar, some ISO years have a 53rd week.

Do not assume every year ends at week 52.

What is a Unix timestamp?

A Unix timestamp represents time as a number counted from a conventional origin: January 1, 1970 at 00:00:00 UTC, often called the Unix epoch.

Numbers are convenient for software to store, sort, compare and transmit.

The Timestamp Converter converts a Unix timestamp to a readable date and performs the reverse conversion.

Seconds or milliseconds: a critical distinction

Not every system uses the same precision.

Classic Unix timestamps are commonly expressed in seconds since the Unix epoch. Many environments, including JavaScript, commonly use milliseconds.

The factor is 1,000. A millisecond value therefore generally has three additional digits compared with the same instant expressed in seconds.

Confusing these units can produce a date very far from the expected value. Always check the unit expected by an API, database or file format.

Convert a timestamp to a date.

Timestamp and time zone

A timestamp identifies an instant. Its human-readable display can then depend on the chosen time zone.

The same instant can appear with different clock times in Paris and New York. The timestamp has not changed; only its local representation has.

This distinction is fundamental in software. Storing an instant and displaying a local date/time are separate operations, and UTC is often used as a common reference between systems.

Readable date, ISO date or timestamp?

No single format is best for every use.

A localized date is convenient for people but can be ambiguous internationally. An ISO-style date such as 2026-08-28 is explicit for exchanging calendar dates because it follows year-month-day order. A timestamp is particularly useful for representing an instant in a software system.

Ask whether you need to represent a calendar date, a precise instant or a calendar period.

Week number or date difference?

A week number classifies a date into an ISO week; it does not measure a duration.

To find how many days separate two dates, use the Date Difference Calculator. For a deadline, use Days Until a Date. To identify a week, use the ISO Week Number Calculator.

Timestamp or calendar arithmetic?

A timestamp is suitable for a technical instant but does not replace calendar rules.

Adding one month to a date is not the same as adding a fixed number of seconds because months have different lengths.

To move a date by days, weeks, months or years, use Add or Subtract Time from a Date. To convert a quantity of seconds to minutes, hours or days, use the Duration Converter.

Choose the right Dates & Time tool

Bethemesh’s Dates & Time tools cover complementary needs: Age Calculator, Date Difference Calculator, date arithmetic, Days Until a Date, Business Days Calculator, Time Duration Calculator, Duration Converter, ISO Week Number Calculator, and Timestamp Converter.

For everyday calendar calculations, read Date calculations: differences, deadlines, business days and calendar arithmetic. For clock times and units, continue with Durations and time: calculate, convert and handle midnight crossings.

Related tools

Dates & time
Beta

ISO Week Number Calculator

Find the ISO week number of a date and the start and end dates of that week.

100% localNew
Use this tool
Dates & time

Timestamp converter

Convert a Unix timestamp to a readable date or turn a date into a Unix timestamp.

100% local
Use this tool

Was this article useful?