linuxbashdateformat

How to format date in bash to YYYY-DD-MMTHH:MM:SS.sss


can someone give me a point how to format data in bash with miliseconds? Thanks for help.

BR.

Petr


Solution

  • Solution is pretty simple. It is date '+%Y-%m-%dT%T.%3N'.