-2

I need a add date with timestamp to the file name when downloaded.

new Date().toString()

output needed is - 20170521043644 here - 2017,May17 is the date and 04:36 is the time and 44 is the second. But the same could occur 2 times a day. How to resolve this also.

Method I know is - to get date, time and second separately and concatenate it.

Manojkumar
  • 1,301
  • 4
  • 32
  • 49

0 Answers0