whenever i convert dataFrame to_json any date format changes to "epoch time"
[{"idNo":1234567891012,"Name":"Jack","genderType":"male","Date":1544572800000,"branchName":"NY","location":"loc1","pCode":123}] Original date was Date:2018-12-12
my python code
@app.route("/fileviewer/" , methods=["GET" , "POST"]) def fileviewer(name): dest = (file_destination) df = pd.read_excel(dest) print(df) x1=df.to_json(orient ='records') print(x1) render_template('fileviewer.html',x=df.to_html()) return render_template('fileviewer.html',x=x1) df prints fine
x1 prints with the "epoch time"