JavaScript converts objects to primitive values by calling the valueOf method, and we rarely need to call the valueOf method ...
The valueOf() method of {{jsxref("String")}} values returns this string value. The valueOf() method of {{jsxref("String")} ...
Date() setMonth() getDate() setFul­lYear() getDay() setHours() getMonth setMin­utes() getFul­lYear setSec­onds() getYear ...