nperez0111 / Pizza

Pizza Web App Point of Sale and API
1 stars 0 forks source link

Parse DB timestamp in JS #43

Closed nperez0111 closed 8 years ago

nperez0111 commented 8 years ago

In order to parse the DB TimeStamp you need,

a.split(" ")[0].split("-").map(
 function(q){
  return(parseInt(q,10));
 }).concat(a.split(" ")[1].split(":").map(
 function(q){
  return(parseInt(q,10));
 }));