android icon indicating copy to clipboard operation
android copied to clipboard

Marshal JavaScript Date to java.util.Date

Open vtrifonov opened this issue 6 years ago • 1 comments

Add marshalling of javascript Date object ot Java java.util.Date when calling a native method accepting java.util.Date argument.

vtrifonov avatar Mar 19 '19 11:03 vtrifonov

It's probably a good idea to marshal the JS Date object to a corresponding java.time class too, depending on the case. Java's Date and Calendar classes are the old APIs for working with date/time, the new ones are in the java.time package and are the recommended ones nowadays.

vmutafov avatar Mar 31 '19 21:03 vmutafov