Last active
January 1, 2025 06:29
-
-
Save nativescript-oss/26fcd158f452e0efbcdb40fa448f2a10 to your computer and use it in GitHub Desktop.
Happy New Year 2025 π π
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| if (__ANDROID__) { | |
| const androidDate = java.time.LocalDate.of(2025, 1, 1); | |
| } else if (__APPLE__) { | |
| const comp = NSDateComponents.new(); | |
| comp.year = 2025; | |
| comp.month = 1; | |
| comp.day = 1; | |
| const appleDate = NSCalendar.currentCalendar.dateFromComponents(comp); | |
| } | |
| const jsDate = new Date(2025, 0, 1); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment