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 SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to Setting Date to "DD-MMM-YY" (31-AUG-02) ?

Status
Not open for further replies.

stvhui

Programmer
Jul 17, 2002
13
0
0
ID
Hello to you,

How to setting Date to "DD-MMM-YY"
eg. 31-AUG-02

Please advice
Steven
 
This can be set by doing a couple of things:
SET CENTURY OFF
SET DATE SHORT
SET DATE MDY

But you have to go in the control panel (Regional settings) and check the Short Date style, and adjust it to show DD-MMM-YY
 
STVHUI

Sorry in my above suggestion I meant:
SET CENTURY OFF
SET DATE SHORT
SET DATE DMY


 
STVHUI

One last thing, once you reset the date in the Regional Settings, it does require a re-boot to take effect.
 
try :


str(day(date())) + " " + left(cmonth(date()), 3) + " " + str(year(date()))



 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top