Computing.Net > Forums > Programming > How can I get the Date format I wan

How can I get the Date format I wan

Reply to Message Icon

Original Message
Name: nick_o
Date: August 29, 2002 at 01:06:46 Pacific
Subject: How can I get the Date format I wan
Comment:

I tried to use FormatDateTime function in VBScript to get the format I want but failed. It says in the documentation that this function captures the setting in the regional setting and would display accordingly but my test(on the server side) results is negative. I try to format to dd/mm/yyyy. Does any one know how? Its working fine as long as you didn't log in into the system. Once logged into the server, the result automatically back to the US date format. I'm using 2k Advanced server. It drives me crazy.
I wonder if there's a setting/ step done wrong when I install the OS


Report Offensive Message For Removal

Response Number 1
Name: NoName
Date: August 29, 2002 at 02:47:19 Pacific
Subject: How can I get the Date format I wan
Reply: (edit)

[SCRIPT]
DateString = CStr(Day(Date))+"/"+CStr(Month(Date))+"/"+CStr(Year(Date))
MsgBox(DateString)
[/SCRIPT]



Report Offensive Follow Up For Removal







Use following form to reply to current message:

   Name: From My Computing.Net Settings
 E-Mail: From My Computing.Net Settings

Subject: How can I get the Date format I wan

Comments:

 


  Homepage URL (*): 
Homepage Title (*): 
         Image URL: 
 
Data Recovery Software