Click here to Skip to main content
15,035,600 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hey guys, on an application I'm building I'm using a I have bootstrap datetimepicker which uses moment. I've been getting a warning about moment's deprecation and now it's not working like it was yesterday and I think it has something to do with it...

What should I do? I liked the way it was...

1 solution

The warning is caused when moment has to parse a string to a date without knowing what the input format is. If you specify the input format, through the format property, the deprication warning will dissapear.
You should be able to find out how to do this via the documentation of datetimepicker.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900