Hi,
Let's suppose I have the following code:
The output generated reads:
1/4/2010
Monday, January 04, 2010
but, what I want is:
1/4/2010
*DayOfWeek*, April 01, 2010
Does VBScript have "locale support"? What's the best way for me to get the output I want?
Let's suppose I have the following code:
HTML:
<html>
<head>
<title>Untitled</title>
</head>
<body>
<script type="text/vbscript">
Dim aDate
Dim dateString, country
country = "UK"
dateString = "1/4/10"
if country = "UK" then
aDate = CDate(dateString)
document.write(aDate & "<br>")
document.write(FormatDateTime(aDate,1) & "<br />")
end if
</script>
</body>
</html>
The output generated reads:
1/4/2010
Monday, January 04, 2010
but, what I want is:
1/4/2010
*DayOfWeek*, April 01, 2010
Does VBScript have "locale support"? What's the best way for me to get the output I want?