Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > ASP General > Locale and the Date variable

Reply
Thread Tools

Locale and the Date variable

 
 
jessie
Guest
Posts: n/a
 
      11-08-2003
I use a chinese version of Windows XP. And excute a vb script code to get a
date value from a Excel file. The data value is in English format in the
Excel file. But I found the vb script converts it to chinese data format
automatically. So I can not compare it with another data variable as I
wish. So how can I force it to English date format? Thanks.
 
Reply With Quote
 
 
 
 
Aaron Bertrand [MVP]
Guest
Posts: n/a
 
      11-09-2003
Force a specific format.
http://www.aspfaq.com/2260
http://www.aspfaq.com/2313



"jessie" <> wrote in message
news:Xns942D8AF137D8Dallywzcnet@207.46.248.16...
> I use a chinese version of Windows XP. And excute a vb script code to get

a
> date value from a Excel file. The data value is in English format in the
> Excel file. But I found the vb script converts it to chinese data format
> automatically. So I can not compare it with another data variable as I
> wish. So how can I force it to English date format? Thanks.



 
Reply With Quote
 
 
 
 
jessie
Guest
Posts: n/a
 
      11-09-2003
"Aaron Bertrand [MVP]" <> wrote in
news:#:

> Force a specific format.
> http://www.aspfaq.com/2260
> http://www.aspfaq.com/2313
>


I use oRS.Fields.Item(0).Value to read the data in Excel file, so it is a
string format variable when I read a date variable.
How can I read it directly as a date variable?
Thank you!
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
the relation between C++ locale and C locale zade C++ 1 03-05-2010 06:04 PM
Re: List of locale values for locale.setlocale() under Windows Gabriel Genellina Python 0 02-18-2009 12:00 AM
Create C++ std::locale without changing C locale dertopper@web.de C++ 4 08-26-2008 01:15 PM
i18n problem, involving Locale.getDisplayLanguage and Locale.getDisplayCountry Maurice Hulsman Java 1 07-25-2004 06:11 PM
locale.nl_langinfo(RADIXCHAR) vs locale.localeconv()['decimal_point'] Jeff Epler Python 2 08-31-2003 02:18 PM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57