[root@108test ~]# date -d today +"%Y-%m-%d" 2008-05-07 [root@108test ~]# date -d today +"%Y_%-m_%-d" 2008_5_7 [root@108test ~]# date -d today +"%Y-%m-%d %T" 2008-05-07 14:55:19 [root@108test ~]# date -d today +"%Y-%m-%d %H:%M" 2008-05-07 14:55 [root@108test ~]# date -d today +"%Y-%m-%d %H:%M:%S" 2008-05-07 14:55:57 |