Ant-design: Feature/Component request: week picker

Created on 13 Nov 2016  ·  9Comments  ·  Source: ant-design/ant-design

Implementation reference:
http://www.scripts.morshed-alam.com/week-picker/

image

  • Be able to select a week
  • Be able to specify which day to count as the first day of the week (e.g. Sunday or Monday)
help wanted ☘️ New Component 💄 Design

Most helpful comment

Is it possible to change the day the week starts on?

All 9 comments

It weird to select month or year in WeekPicker @afc163

Launched in branch antd-3.0.

I see there is now a week selector, thank you!

How can we change the week start day to Monday?

Is it possible to change the day the week starts on?

HI
Is it possible to change start day of week to Monday

Is it possible to change start day of week to Monday

Hi,
it is possible just import locale from a country where the week starts with Monday e.g. Germany -> de.

import * as moment from 'moment';
import 'moment/locale/de';

@Frabanz Is it possible to change start day of week to Monday, but keeping en_US language?

Hello,

I changed start day of week to Monday using moment.updateLocale.

e.g

moment.updateLocale("en", { week: { dow: 1 } });

Hello,

I changed start day of week to Monday using moment.updateLocale.

e.g

moment.updateLocale("en", { week: { dow: 1 } });

It works.
Note: It is affecting the whole portal.

Was this page helpful?
0 / 5 - 0 ratings