Custom Search
www.rocket99.com : Technical Guides Sybase Oracle UNIX Javascript


Technical Guides
Sybase
Oracle
UNIX
Javascript




Of Interest

Business Intelligence and Analytics



Oracle Training





UNIX » Shell » Coding »

Formatting a date

     




In many scripts dated file token is required in the file name ..
this example shows how to grab the date from the system and format it, to a YYYYMMDD format.










-- Date formatting

archive_id=`date +'%Y%m%d'`










UNIX : Related Topics

UNIX : Shell : Wait for sentinel file to clear
UNIX : Shell : Scan a file in a shell script

Sybase Web Site
Sybase iAnywhere Mobile Web Site
Oracle Enterprise Web Site



Get the latest Rocket99 news and tech tips via






Site Index About this Guide to Sybase, Oracle, and UNIX Contact Us Advertise on this site




Copyright © 2016 Stoltenbar Inc All Rights Reserved.