1 | initial version |
The syntax to convert a date into the format of YYYY-DD-MMTHH:MM:SS.sss in bash is:
date +%Y-%d-%mT%H:%M:%S.%3N
This will output the date and time in the required format: YYYY-DD-MMTHH:MM:SS.sss. Replace %3N
with %6N
for microseconds.