Add autoformatting for dates
See original GitHub issueHey all. Really useful library, and I’ve loved it so far.
One thing I’ve found that was a little annoying at first was having to format the start and end date strings when saving an event. I’ve made a decision to avoid moment.js as I really don’t do a lot of work with dates in my app, and I didn’t want the extra code size. I also found out the hard way that react-native-calendar-events requires strings for start and end because there was an NPE when I supplied a Date for start and end.
I ended up having to write a custom formatter for this, and it looks like you guys parse this string into a native Date object afterward anyway. I would love to supply a javascript Date object or even an epoch long to represent dates for saveEvent
Issue Analytics
- State:
- Created 7 years ago
- Comments:5 (2 by maintainers)
Top Results From Across the Web
Format a date the way you want - Microsoft Support
To quickly use the default date format, click the cell with the date, and then press CTRL+SHIFT+#. If a cell displays ##### after...
Read more >How to change Excel date format and create custom formatting
The first part of our tutorial focuses of formatting dates in Excel and explains how to set the default date and time formats,...
Read more >How to Auto-Format the Date in MS Excel
Click on a column or row header to select all the cells that will accept date information. Shift-click to add an adjacent row...
Read more >Excel Date and Time Formatting - My Online Training Hub
We can also create our own custom date and time formats to suit our needs. Let's take a look. Select the cell(s) containing...
Read more >Excel keeps changing my numbers into dates.
Special formatting tricks to avoid having Excel change numbers into dates · Add a space before the number. · Or, add an apostrophe...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Any update news for this issue?
iOS and Android should now allow for timestamps as well as ISO strings in 1.4.0. Closing for now, but please reopen issues are found around this.