And as value the code :
(mydate.getHours()+":"+myDate.getMinutes()+":"+myDate.getSeconds())
and it must be an expression like this :
Now I shall explain it :
mydate.getHours () getHours stands for getting the Hours and mydate stands for : from which variable to take the Hours
(In this case the variable mydate )