HTML5/Angularjs dates with PHP

Post date: 2021-06-16 23:42:56
Views: 15
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

input type="date" ng-model="dash.newTrial.date_samples_due" />

I tried putting it through strtotime but it returns false, so it can't parse what I'm getting.
Number of Comments
Please click Here to read the full story.
 
Other Top and Latest Questions:
Ripley: VII Macabre Entertainment Show Only
Oil edges higher as U.S. weighs added sanctions on Iran oil exports after attack on Israel
How to manage your money in your 40s, according to CFPs: As your investments grow, 'mistakes can get bigger' too
Volkswagen union vote in Tennessee to test UAW's power after victories in Detroit
Help me assess the morals of applying for a C-Suite role
Self-made millionaire who retired at 35: The first time I felt financially secure, I was 'living small' and spending 'a lot less'
Pacific Crest Trail cotton-free material t-shirt?
Stocks making the biggest moves midday: UnitedHealth, SolarEdge, Bank of America, Tesla and more
If this is a stock market correction, here's how history says it will unfold
Justices question obstruction charge in Jan 6 rioter prosecution, which could affect Trump's case