. Advertisement .
..3..
. Advertisement .
..4..
I get “.split is not a function” error when i run the program please tell me how to fix it?
Here is the error message
Uncaught TypeError: dtDate.split is not a function
Here is the code
const dtDate = new Date();
const strDate = dtDate.split(' ');
2 Answers