How to append current time in build name using JS -TestCafe?

How to append current time in build name using JS -TestCafe ?

Hello Macy,

You can use string.Format and add the string:

string.Format("{0:yyyy-MM-dd_HH-mm-ss-fff}", DateTime.Now);