Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people, just like you, are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
Solved

simple date routine..

Posted on 1998-11-09
3
259 Views
Last Modified: 2010-05-18
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
Comment
Question by:jonasm
  • 2
3 Comments
 
LVL 84

Expert Comment

by:ozo
ID: 1206097
print join'-',(split/ /,localtime)[2,1,4];
0
 

Author Comment

by:jonasm
ID: 1206098
Worked Perfect Thanks Ozo!!!
0
 
LVL 84

Accepted Solution

by:
ozo earned 70 total points
ID: 1206099
print join'-',(split/ /,localtime)[2,1,4];
0

Featured Post

Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

A year or so back I was asked to have a play with MongoDB; within half an hour I had downloaded (http://www.mongodb.org/downloads),  installed and started the daemon, and had a console window open. After an hour or two of playing at the command …
In the distant past (last year) I hacked together a little toy that would allow a couple of Manager types to query, preview, and extract data from a number of MongoDB instances, to their tool of choice: Excel (http://dilbert.com/strips/comic/2007-08…
Explain concepts important to validation of email addresses with regular expressions. Applies to most languages/tools that uses regular expressions. Consider email address RFCs: Look at HTML5 form input element (with type=email) regex pattern: T…

861 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question