Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

convert date 1

Status
Not open for further replies.

kamsabeti

IS-IT--Management
Feb 26, 2008
21
How can I convert this number to a date format:
Raw data: 200706 to June-2007

Thanks
Kamran

 
Hi

Code:
echo '200706' | awk 'BEGIN{split("January February March April May June July August September October November December",m)}{print m[substr($0,5,2)+0]"-"substr($0,1,4)}'

Feherke.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top