toLocaleDateString() does not work in Android. The date format gets trimmed from 'yyyy' to 'yy' (iOS does work correctly) #29824
Labels
JavaScript
Needs: Attention
Issues where the author has responded to feedback.
Platform: Android
Android applications.
Resolution: Locked
This issue was locked by the bot.
Description
When using Dates in React Native, the method toLocaleDateString() clips the date. Is there a work around for android?
React Native version:
"react-native": "~0.62.2",
Steps To Reproduce
In any component paste this code and you will see...
Expected Results
The first year will log a 2 digit year: '20'. In iOS the year will log a 4 digit year: '2020'
Snack, code example, screenshot, or link to a repository:
//sorry I do not have an open repo or snack
The text was updated successfully, but these errors were encountered: