Excel Macro : How can I get the timestamp in “yyyy-MM-dd hh:mm:ss” format? January 31, 2023 by Tarik Try with: format(now(), "yyyy-MM-dd hh:mm:ss")