I am working in wso2 data analytical server. I'm using query to get data based on timestamp but I have given time stamp manually. Please tell me how to get current date and time together in milliseconds in jaggery js ?
Asked
Active
Viewed 255 times
2 Answers
1
var currentDate = new Date();
Math.round(Date.parse(currentDate) / 1000);
var end = Date.parse(currentDate) // Converting in Timestamp

Martin Tournoij
- 26,737
- 24
- 105
- 146
0
You can call java within jaggery. So these should work.
var milis = java.lang.System.currentTimeMillis();
var date = new java.util.Date().toString();

Bee
- 12,251
- 11
- 46
- 73
-
Thank you so much for your response. I have used above code. @Bhathiya – Jan 11 '17 at 10:33