I am beating my head around making this possible how do i convert datetime-local which i am using in jquery mobile and store data as datetime as my field is datetime in the database
'<input type="datetime-local"' + demodata + ' />';
I am using jquery mobile and having major issues
        if($(this).attr('type')==='datetime-local')
    {
              var $datevalue  =$(this).val();
                a[$(this).attr('name')] = $datevalue.toString(); //Have to convert to datetime instead
    }
My datetime-local value is in this format: 2014-07-18T12:12
 
     
     
     
     
    