I have this time stamp format:

var timestamp_format = "yyyy-MM-dd HH:mm:ss";

Which produced a result like:

5/25/2019 10:52:43

but I would like to have a carriage return between the date and time for this result:


How might I make that happen?

1 Answer 1


Sometimes, guessing just works!

var timestamp_format = "yyyy-MM-dd\nHH:mm:ss";

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.