date formats the current date, or translates between date formats. You may also be interested in gnu date.