I have an html5 date field in an angularjs application which I'm trying to send to a php script to save but what the field is coming back with is not something I can use.
eg. Thu Jul 01 2021 00:00:00 GMT+0100 (British Summer Time)
I've used angularjs and date fields before and just gotten the YYYY-mm-dd which is what I'm wanting and I'm not sure why this one is coming up so different. The field is very simple