splitforms.com

HTML · INPUT TYPE

HTML input type=week: ISO Week Picker

Last reviewed

An <input type="week"> lets users pick an ISO 8601 week. The submitted value is always YYYY-Www, such as 2026-W45. Weeks start on Monday, and week 1 has the year's first Thursday, so early January days can belong to the previous year's week 52 or 53. Firefox and Safari show a plain text box.

  • Live, editable example
  • Copy-paste snippet
  • Attributes & common mistakes
Live demo · nothing is sent

What gets submitted

Fill in the form above and press its button. The demo stops the request and lists every name=value pair the browser would send, plus the controls it leaves out.

With a free access key in the form, these fields land in your splitforms dashboard; access_key and botcheck are read by splitforms, not stored as lead data.

Edit the HTML and re-run it
Runs in a sandbox. Nothing is sent.

Minimal snippet

week-input-example.html
<input type="week" id="delivery_week" name="delivery_week" min="2026-W01" max="2026-W52">

Copy-paste code

HTML input type=week code you can paste today.

Replace YOUR_ACCESS_KEY with a key from your free splitforms dashboard. The form posts to one endpoint — submissions land in your inbox and dashboard with spam filtering built in.

Get free access key
input-type-week.html
<form action="https://splitforms.com/api/submit" method="POST">
  <input type="hidden" name="access_key" value="YOUR_ACCESS_KEY">

  <label for="name">Name</label>
  <input type="text" id="name" name="name" autocomplete="name" required>

  <label for="delivery_week">Delivery week</label>
  <input type="week" id="delivery_week" name="delivery_week"
         min="2026-W01" max="2026-W52" required>

  <!-- Honeypot: hidden from people, bots fill it in -->
  <input type="checkbox" name="botcheck" style="display:none" tabindex="-1" autocomplete="off">

  <button type="submit">Schedule delivery</button>
</form>

Attributes · <input type="week">

Which HTML input type=week attributes matter?

These attributes decide how the <input type="week"> behaves and what actually gets emailed to your inbox when someone submits.

HTML input type=week attributes and what each one does
AttributeWhat it doesDocs
valueThe default week in YYYY-Www format (such as 2026-W45). This is also the format the form submits.MDN
minThe earliest week allowed, in YYYY-Www format (such as 2026-W01).MDN
maxThe latest week allowed, in YYYY-Www format (such as 2026-W52).MDN
stepThe step in weeks. The default is 1. Use 2 to allow every other week, counted from min.MDN
requiredRequires a week to be chosen before the form can be submitted.MDN

Common mistakes

HTML input type=week not working? Here's why.

Most broken forms come down to a few small mistakes with the <input type="week">. Check these before you ship, then forward every submission to Slack or a webhook.

  1. ISO week-year differs from calendar year near New Year

    ISO weeks start on Monday, and week 1 is the week with the year's first Thursday. Days in late December can belong to week 1 of the next year, and days in early January can belong to week 52 or 53 of the previous year.

  2. Firefox and Safari show a plain text box

    Firefox and Safari do not provide a native week picker. Add pattern="\d{4}-W\d{2}" and placeholder="2026-W45" as a fallback, and always validate the format on your server.

  3. No day is sent to the server

    The submitted value contains only the week-year and week number, such as 2026-W45. Convert it to a calendar date on the server, for example in Python using date.fromisocalendar(2026, 45, 1) for Monday.

  4. For most booking forms a date input is easier for users

    Most people think in dates rather than ISO week numbers. Unless your business operates strictly on production cycles or delivery schedules, <input type="date"> provides a better user experience.

Sources: WHATWG HTML Standard: <input type="week"> · MDN: <input type="week">

Copy-paste ready

The HTML input type=week example below is a complete, working form — paste it into any HTML page and it submits, no edits to the markup required.

No backend to build

Your html input type=week form posts to one endpoint. No server, PHP, or API route — accepted submissions are saved to your dashboard before owner notification email is attempted; delivery time and inbox placement depend on provider and recipient settings.

A form that really submits

Unlike a static reference snippet, this <input type="week"> form actually sends data to a free splitforms backend, with spam filtering built in.

How it works

How to add HTML input type=week to any page.

Copy the html input type=week example, drop in your free access key, and paste it into any page — submissions start landing in your dashboard.

Copy the code

Copy the HTML input type=week example below.

Add your access key

Replace YOUR_ACCESS_KEY with a free splitforms key from the dashboard.

Paste into your site

Drop the form into any HTML page. Submissions arrive in your dashboard.

How SplitForms works

What happens after someone submits your form?

splitforms receives the submission, filters spam, saves it to your dashboard and emails you — then, on paid plans, sends it on to your webhooks and integrations. No backend infrastructure to build.

A SplitForms contact form submission launching straight to your inbox

Add your endpoint

Point your form to your unique SplitForms endpoint. That's it.

HTML form pointing at a SplitForms submit endpoint

Receive submissions

We instantly capture and organize every submission in your inbox.

Submissions inbox with searchable leads and status pills

Route anywhere

Send data to email, spreadsheets, CRMs, webhooks, and 7,000+ apps.

Generic integration tiles for email, sheets, chat, CRM, automate, and webhook

No credit card required. Set up in under 60 seconds.

Connect & automate

Where can submissions go besides email?

On paid plans, submissions can also go to Slack, Discord, Google Sheets, Notion, Airtable, Zapier or any signed webhook — and splitforms works on the platforms you build on, from WordPress and Shopify to Next.js. With Stripe connected, your forms can take payments too.

Connect your SplitForms form to Slack, Google Sheets, Mailchimp, Zapier and more
NewTake payments on your formsDeposits, bookings, order forms — submitters check out through Stripe and the money goes straight to your Stripe account. Included on every paid plan.See payment forms →Need time slots? Online booking →

Setup guides for the stacks you use

Questions

HTML input type=week questions, answered.

View all FAQs
What value does input type week submit?

It sends a string in YYYY-Www format, such as 2026-W45, under the input's name. The format is fixed across all browsers and locales. An empty field sends an empty string.

How do I turn the week value into a date on the server?

Parse the year and week number from the YYYY-Www string. In Python, call date.fromisocalendar(year, week, 1) to get the Monday of that week. In JavaScript, add (week - 1) * 7 days to the first Thursday of the year.

Which browsers support input type week?

Chrome, Edge and other Chromium-based browsers support the native week picker. Firefox and desktop Safari do not support it and show a plain text box instead, so add a pattern and placeholder fallback.

How do I set a default week?

Set the value attribute to a valid ISO week string, such as value="2026-W45". In JavaScript, set input.value to the same format.

When does a year have a week 53?

Under ISO 8601, a year has 53 weeks if January 1 falls on a Thursday, or on a Wednesday in a leap year. Most years have 52 weeks. Ensure your backend validator allows week numbers up to 53.

Simple pricing

How much does splitforms cost?

Free gives you 500 submissions for $0 — no card, no time limit. Pro is $5/month for 5,000 submissions a month, and Annual is $49/year for 15,000 a month with every Pro feature.

Free

$0— 500 submissions
 

No card, no time limit

Best for testing

For side projects and indie devs.

  • 500 free submissions
  • Unlimited forms
  • Email notifications included
  • Smart spam filtering
  • Submissions dashboard
  • Redirect after submit
  • MCP server included

Annual

$49/ year
About $4.08 per month, billed yearly
Best value

Every Pro feature with triple the volume — $0.27 per 1,000 at full use.

  • 15,000 submissions per month
  • Unlimited forms
  • Everything in Pro
  • File uploads with 5 GB storage
  • 3 team seats
  • Priority email support

No credit card required on Free • Cancel anytime • Full pricing and FAQ