I have downloaded a war file (not my code) websockets application for live chat(Java Application)
And this is the information i am receiving from back end (for which i don't have code)
Object {message: "as", sender: "sdas", received: "Thu Nov 19 21:12:36 IST 2015"}
Is it possible to change the date so that i can get only
Thu Nov 19 21:12:36 , instead of Thu Nov 19 21:12:36 IST 2015
function onMessageReceived(evt) {
var msg = JSON.parse(evt.data);
console.log(msg);
var $messageLine = $('<tr><td class="received">' + msg.received
+ '</td><td class="user label label-info">' + msg.sender
+ '</td><td class="message badge">' + msg.message
+ '</td></tr>');
$chatWindow.append($messageLine);
}
Could you please let me know how to do this
receiveda String or a Date? If Date you can easily change it, if String you can either parse it to however you need or convert to Date and change it