Question: My question is more about logic not code.I created something called prepared messages with time i supply to each new message, i compare the time with current time and give each row a background. Is it possible for me to fetch the time with javascript only the current time NO DATE.
Regards

Answer: 
Yes, see [Date.getTime()](http://www.w3schools.com/jsref/jsref_getTime.asp)
Take a look at the [Date Object](http://www.w3schools.com/jsref/jsref_obj_date.asp) and in particular the following methods

1. [toTimeString()](http://www.w3schools.com/jsref/jsref_totimestring.asp)
2. [getHours()](http://www.w3schools.com/jsref/jsref_gethours.asp)
3. [getMinutes()](http://www.w3schools.com/jsref/jsref_getminutes.asp)
4. [getSeconds()](http://www.w3schools.com/jsref/jsref_getseconds.asp)