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!
jonasmAsked:
Who is Participating?
 
ozoConnect With a Mentor Commented:
print join'-',(split/ /,localtime)[2,1,4];
0
 
ozoCommented:
print join'-',(split/ /,localtime)[2,1,4];
0
 
jonasmAuthor Commented:
Worked Perfect Thanks Ozo!!!
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.