• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 279
  • Last Modified:

simple date routine..

I need a simple routine that get the date and format i like this = 10-Nov-1998   just by calling on the script.

>getdate
10-Nov-1998

Thanks in advance!
0
jonasm
Asked:
jonasm
  • 2
1 Solution
 
ozoCommented:
print join'-',(split/ /,localtime)[2,1,4];
0
 
jonasmAuthor Commented:
Worked Perfect Thanks Ozo!!!
0
 
ozoCommented:
print join'-',(split/ /,localtime)[2,1,4];
0

Featured Post

Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now