02-09-2006
4,
0
Join Date: Jan 2006
Last Activity: 13 January 2009, 11:02 PM EST
Posts: 4
Thanks Given: 0
Thanked 0 Times in 0 Posts
Extract century from date (Solaris platform)
Hi ,
I want the date in the following format(Solaris platform)
CCYYMMDD:HHSS
I am facing problems in extracting century from the date.
I tried the following options.
`date '+%cc%y%m%d:%H%S`
but the Output is (Thu Feb 09 02:28:21 2006c060209:0221).
I think this problem is specific to solaris platform.
I kindly request your help in resolving this issue.
Thanks & Regs
Anand