question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Possible to change value for Datepicker picker="week"?

See original GitHub issue
  • I have searched the issues of this repository and believe that this is not a duplicate.

Reproduction link

https://user-images.githubusercontent.com/19340495/129373563-fb997542-b5df-4042-b762-d38f8c405555.png

Steps to reproduce

The selected value in the datepicker with picker=“week” is like 2021-32nd, Is it possible to format it?

What is expected?

Should be able to format

What is actually happening?

Coming as 2021-32nd

Environment Info
antd 4.6.0
React 16.14.0
System macos
Browser Chrome

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:8 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
huntdreamcommented, Aug 15, 2021

Will I be able to get the selected week range in below format?

MM-DD-YYYY - MM-DD-YYYY ( Start date to end date)

Yes, it supports custom format (value: moment) => string), you can return a string whatever you want

0reactions
truedrugcommented, Aug 15, 2021

Will I be able to get the selected week range in below format?

MM-DD-YYYY - MM-DD-YYYY ( Start date to end date)

Read more comments on GitHub >

github_iconTop Results From Across the Web

Set initial value in datepicker with jquery?
Sets the current date for the datepicker. The new date may be a Date object or a string in the current date format...
Read more >
Datepicker Widget | jQuery UI API Documentation
CTRL / COMMAND + DOWN : Move to the next week. ENTER : Select the focused date. CTRL / COMMAND + END :...
Read more >
DatePicker, UI Controls Webix Docs
The Datepicker widget provides the possibility to select multiple dates in a calendar at once. To enable this feature, set the multiselect property...
Read more >
Options — bootstrap-datepicker documentation - Read the Docs
Days of the week that should be highlighted. Values are 0 (Sunday) to 6 (Saturday). Multiple values should be comma-separated. Example: highlight weekends:...
Read more >
How to Change the Date Picker in JasperReports Server ...
This by default is "1". To change the first day to Sunday, this value will need to be changed to "0". This will...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found