Linux Date command: Show current date YYYY-DD-MM
YYYY-MM-DD
echo `date +"%Y-%m-%d"`
Result:
2008-05-29
YYYY-MM-DD_HH_MM_SS
echo `date +"%Y-%m-%d_%H-%M-%S"`
Result:
2008-05-29_10-35-44You can use these for creating files names of backups.
Web Development, Problems and Solutions, Marketing, Business. Overall this blog is dedicated to daily challenges that developers meet during their day.
YYYY-MM-DD
echo `date +"%Y-%m-%d"`
2008-05-29
echo `date +"%Y-%m-%d_%H-%M-%S"`
2008-05-29_10-35-44You can use these for creating files names of backups.
(c) Svetoslav Marinov and 2006-. All Rights Reserved.