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.

Add autoformatting for dates

See original GitHub issue

Hey 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:closed
  • Created 7 years ago
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
xwartzcommented, May 12, 2017

Any update news for this issue?

0reactions
wmcmahancommented, Jun 24, 2017

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.

Read more comments on GitHub >

github_iconTop 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 >

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