I am trying to convert Dropbox API date format to date one. In moment.js,
It doesn't work in following format now.
moment.utc("Sat, 21 Aug 2010 22:31:20 +0000")
It does work in following format if using date convert before using utc:
moment.utc(new Date("Sat, 21 Aug 2010 22:31:20 +0000"))
However, I can't use new Date method, because it can't be used in some other cases (string is not standardized) -- related Stackoverflow question.
One possible way is to configure Dropbox input format, is there any other method to let moment.utc work without using new Date method?
Thanks very much!