my way is to use toLocaleDateString (), to get the string form of time 1 2018,). Gettime () 4 and 28, and then bring it into new date (2018-4-28
then string 2 also gets the time, of the date
then subtract the time of the date of string 2 from the time of string 2 to get the time of string 2 time
add this time to the time of the string 1 date, and then bring the time into new date () to get the time after splicing.
but it feels complicated