JavaScript converts objects to primitive values by calling the valueOf method, and we rarely need to call the valueOf method ourselves. When an object with an expected primitive value is encountered, ...
I cannot get the value out of a promise. valueOf seems to be the way to do this, but it is either broken or I misunderstood how to use it.
Date() setMonth() getDate() setFul­lYear() getDay() setHours() getMonth setMin­utes() getFul­lYear setSec­onds() getYear setMil­lis­eco­nds() getHours setTime() getMinutes setUTC­Date() getSeconds ...