vba - Excel Macro : How can I get the timestamp in "yyyy-MM-dd hh:mm:ss" format? -


I am using DateTime.Now in my code macro to show the current timestamp .

This timestamp shows in the format "dd-MM-yyyy hh: mm: ss".

Instead, how do I get a timestamp in "yyyy-MM-dd hh: mm: ss"? Format?

Try it with: format (now (), "yyyy-MM-dd hh : Mm: ss ")

Comments

Popular posts from this blog

qt - switch/case statement in C++ with a QString type -

python - sqlite3.OperationalError: near "REFERENCES": syntax error - foreign key creating -

Python's equivalent for Ruby's define_method? -