Check out example codes for "mysqldump - date". It will help you in understanding the concepts better.

Code Example 1

mysqldump -u <user> -p <database> | bzip2 -c > <backup>$(date +%Y-%m-%d-%H.%M.%S).sql.bz2

Learn ReactJs, React Native from akashmittal.com