Skip to content

Week Number and Day of Year Calculator

See how many weeks into the year a date is, using ISO 8601 week numbering, plus the day of the year, for today or any timestamp you paste.

100% Free • No Signup • Zero Uploads (Runs Locally)

100% Local Browser Execution • Zero Server Uploads • Air-Gap Safe

100% Local Tool Execution • Tool Inputs Never Leave Your Browser BigInt epoch converter

Unix seconds now

…

Milliseconds now

…

UTC now

…

Detected: ISO 8601 date-time

Date to Unix timestamp

1767225600 s · 1767225600000 ms

CtrlEnter to run

Wrong result, broken layout or an idea? Tell us about this tool.

Week Number and Day of Year Calculator Unix Epoch and FILETIME Timeline & Security Architecture Banner

This Unix timestamp converter turns epoch values into readable dates and back: 10-digit seconds, 13-digit milliseconds, microseconds, nanoseconds, ISO 8601 strings, and the Windows FILETIME and LDAP timestamps found in Active Directory and event logs. Paste a value and the unit is detected from its length; every row shows UTC, your local time zone, the ISO week number and day of year. Log timestamps can identify systems and incidents, so conversion happens in your browser.

How are ISO week numbers calculated?

ISO weeks start on Monday, and week 1 is the week that contains the first Thursday of the year (equivalently, 4 January). A year has 52 or 53 ISO weeks.

Because of that rule, the first days of January can belong to the last week of the previous year, and late December can belong to week 1 of the next. 2026 starts on a Thursday, so it has 53 weeks, and 1 January 2027 falls in 2026-W53.

How do you get the week number in Excel or on Linux?

Excel and Google Sheets: =ISOWEEKNUM(A1). Linux: date +%V for the ISO week and date +%j for the day of year. PowerShell: Get-Date -UFormat %V.

Plain WEEKNUM() in Excel uses a US convention (weeks start on Sunday, week 1 contains 1 January) and gives different results around New Year. Use the ISO function for planning across countries.

Also searched as: week number, what week is it, iso week number, day of the year.

What is a Unix timestamp?

A Unix timestamp is the number of seconds since 1970-01-01 00:00:00 UTC (the Unix epoch), ignoring leap seconds. It is the same everywhere, which makes it the standard for logs, databases and APIs.

Because the count is in UTC, 1767225600 is 2026-01-01 00:00:00 UTC no matter where the server runs; only the display changes with the time zone. Signed 32-bit counters overflow at 2147483647, which is 2038-01-19 03:14:07 UTC (the Year 2038 problem). Modern systems store 64-bit values and are unaffected.

How it works: Unix Timestamp Converter

Week Number and Day of Year Calculator Unix Epoch and FILETIME Timeline & Security Architecture Diagram. Timestamp conversion map: an input value is classified by digit count into Unix seconds, milliseconds, microseconds, nanoseconds or Windows FILETIME, normalised to milliseconds since 1970 with BigInt arithmetic, and rendered as ISO 8601 UTC, local time, RFC 2822, ISO week number and day of year.
Timestamp conversion map: an input value is classified by digit count into Unix seconds, milliseconds, microseconds, nanoseconds or Windows FILETIME, normalised to milliseconds since 1970 with BigInt arithmetic, and rendered as ISO 8601 UTC, local time, RFC 2822, ISO week number and day of year.

How do you convert a Unix timestamp to a date?

Multiply seconds by 1,000 and pass the result to a date library, or use date -d @1767225600 on Linux; this converter does it as you type and shows UTC and local time side by side.

The common mistake is mixing units. JavaScript Date.now(), Java System.currentTimeMillis() and most JSON APIs use milliseconds (13 digits), while Unix tools, Python time.time() and PostgreSQL extract(epoch …) use seconds (10 digits). Read a millisecond value as seconds and you land in the year 57,000; read seconds as milliseconds and you land in January 1970. The unit buttons let you override auto-detection when a value is ambiguous.

  • 10 digits: seconds (Unix, Python, Go Unix()).
  • 13 digits: milliseconds (JavaScript, Java, Elasticsearch).
  • 16 digits: microseconds (PostgreSQL internals, Chrome history).
  • 19 digits: nanoseconds (Go UnixNano(), InfluxDB, Kubernetes).
  • 18 digits starting with 13: Windows FILETIME or LDAP (100 ns since 1601).

How do you convert a Windows FILETIME or LDAP timestamp?

Divide by 10,000,000 to get seconds since 1601-01-01, then subtract 11,644,473,600 to reach the Unix epoch. AD attributes such as lastLogonTimestamp, pwdLastSet and accountExpires use this format.

FILETIME counts 100-nanosecond intervals since the start of 1601 UTC. 133801632000000000 therefore becomes 2025-01-01 00:00:00 UTC. The converter uses BigInt arithmetic so 18-digit values keep full precision. An accountExpires value of 9223372036854775807 or 0 means "never" and is not a real date.

How many weeks into the year are we?

Use the ISO 8601 week number: weeks start on Monday and week 1 is the week containing the year's first Thursday, so most years have 52 weeks and some have 53.

Every conversion shows the ISO week (for example 2026-W47) and the day of the year. Note that the ISO week-year can differ from the calendar year near New Year: 2027-01-01 falls in week 53 of 2026. Spreadsheet WEEKNUM() uses a different, US-style rule unless you pass the ISO mode (ISOWEEKNUM).

Epoch and timestamp reference values

Notable timestamps for checking conversions
ValueMeaning (UTC)
01970-01-01 00:00:00, the Unix epoch
10000000002001-09-09 01:46:40
17672256002026-01-01 00:00:00
21474836472038-01-19 03:14:07, signed 32-bit limit
17672256000002026-01-01 00:00:00 in milliseconds
1164447360000000001970-01-01 as Windows FILETIME
1338016320000000002025-01-01 as FILETIME / LDAP

Notable timestamps for checking conversions

Command-line examples

Linux: epoch to date and back

date -u -d @1767225600
date -u -d "2026-01-01" +%s

macOS (BSD date)

date -u -r 1767225600

PowerShell: LDAP / FILETIME to date

[datetime]::FromFileTimeUtc(133801632000000000)

Frequently asked questions

Load the tool with today's timestamp (press Ctrl or Cmd + Enter): the ISO week row shows the current week number.

Related Engineering Guides