Comments (2)
When you are using YMD
format, it expects 2 digit day and month: yyyy-mm-dd
.
Your 2024-1-20
date doesn't match the format. It should be 2024-01-20
instead.
Parsing logic:
taiga-ui/projects/cdk/date-time/day.ts
Line 124 in b4ca77b
from taiga-ui.
hakimio is right, you should also see [parseRawDateString]: wrong date string length
assertion error in console. You are welcome to create a PR if you want to support this format, but currently it is working as planned. As a workaround TuiDay.fromLocalNativeDate(new Date('2024-1-20'))
seems to work.
from taiga-ui.
Related Issues (20)
- 🐞 - Missing migration for `TuiBooleanHandlerWithContext<TuiMonth, TuiMonthContext>`
- 🐞 - `InputTime` has redundant assert log (dev mode only) if `maxValues` has non-default values HOT 2
- 🐞 - Остается ховер и меняется курсор на readonly компоненте HOT 1
- 🐞 - ComboBox - list is not displayed HOT 1
- 🐞 - `Multiselect` clears value on press `,`
- 🤖 - Property Use Logical HOT 1
- 🐞 - ng add nx18
- 🐞 - sensitive bug
- 🐞 - focus removed from editor when clicking disabled buttons in toolbar
- 🤖 - SSG issue
- 🐞 - calendar does not display cells correctly
- 🐞 - `InputTime` default 00 minutes are not set in HH:MM mode
- 🐞 - Error after migration to 4.0 : Property 'items' in type 'TuiDataListGroupWrapperComponent<T>' is not assignable to the same property in base type
- 🐞 - tui-root with background does not allow integration with other root elements and causes a white screen (v4.0) HOT 2
- 🐞 - `Documentation` invalid url on v3 HOT 1
- 🚀 - Create directive `tuiLike`
- 🐞 - TuiCalendarRange change does not update checkbox position
- 🐞 - remove duplicates in import after ng-update
- 🐞 - Links to documentation do not work HOT 2
- 🐞 - `API` page `CalendarRange` changing input [defaultViewedMonth] not working
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from taiga-ui.