I am a JavaScript student and came across JSONata recently.
I am creating an application where our backend requires us to send the date time field in following format: "2019-04-25T11:36:30.254Z"
I see that we can get this using JSONata by using $now() function.
I am not sure how we can use JSONata with JavaScript. Or is there a way to get date time in above format using JavaScript?
I tried below till now but not successful:
var jsonata = require("jsonata");
var date_now = jsonata("$now");
console.log(date_now)
I also tried simple javascript date time objects but that does not give me the required format.