I have a React Web App and a React Native Mobile App. When I pass a moment date object from my react web app to my backend, it gets converted to a string somehow and it works with my backend.
When I do it with my react native mobile app, it passes the date as a moment object and it doesn't get converted to a string and it doesn't work.
Is there a way to convert the moment object into a plain string like
"Tue May 05 2015 23:59:59 GMT+0800 (HKT)"
I tried toString() and toUTCString() and it doesn't work. Thanks.