Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > ASP.NET and ASP > ASP 3 Classic ASP Active Server Pages 3.0 > Classic ASP Basics
Password Reminder
Register
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
Classic ASP Basics For beginner programmers starting with "classic" ASP 3, pre-".NET." NOT for ASP.NET 1.0, 1.1, or 2.0
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Classic ASP Basics section of the Wrox Programmer to Programmer discussions. This is a community of tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Reply
 
Thread Tools Search this Thread Display Modes
  #21 (permalink)  
Old October 26th, 2004, 03:51 PM
Authorized User
 
Join Date: Oct 2004
Location: Ballybrittas, Laois, Ireland.
Posts: 10
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Hi all,
thanks for all your advice and sorry for not responding earlier, I didn't realise so many of you had replied. The error which started above in one of the previous posts after 1+ years could have been caused by a service pack that was installed on the Server as ours was also working fine for over a year when this problem arose.

This is also indicated in the Microsoft article which states, "Based on customer requirements, the manner in which the Regional Settings (primarily the Date/Time format) are read from the system has changed in recent versions of the operating system in order to provide developers with more control of this feature."

The annoying thing with our situation is that we are having this problem with our own test server but the remote server is still working as dd/MM/yyyy. It would be so handy if we could restore our own server to dd/MM/yyyy and not have to carry out extra coding.

mat41,
thanks for your code for changing the date format, if you can find the method that you used to change the way the it displays the the date that would be great, I set HKEY_LOCAL_MACHINE\System\CurrentControlSet\Servic es\InetInfo\Parameters
SetVarConversionLocaleSetting to 2 as this is meant to force the format to use the system default Regional Settings which you can see from the example above in http://www.barrowvale.com/IIS5DateTimeDiffers/ , I have done.

However, if we have to use the functions to wrap around dates to force the date format then so be it.


Many Thanks
Oliver




Reply With Quote
  #22 (permalink)  
Old October 26th, 2004, 09:34 PM
Friend of Wrox
Points: 6,664, Level: 34
Points: 6,664, Level: 34 Points: 6,664, Level: 34 Points: 6,664, Level: 34
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jan 2004
Location: Sydney, NSW, Australia.
Posts: 1,870
Thanks: 12
Thanked 20 Times in 20 Posts
Send a message via AIM to mat41
Default

Oliver

Sorry budy I forgot about looking for those 'system date procedures' I am on a client site at the moment and will be for a few more weeks yet.

;;;However, if we have to use the functions to wrap around dates to force the date format then so be it

I would strongly reccomend doing this, then you cant possibly go wrong.

Wind is your friend
Matt
Reply With Quote
  #23 (permalink)  
Old October 27th, 2004, 06:11 AM
Authorized User
 
Join Date: Oct 2004
Location: Ballybrittas, Laois, Ireland.
Posts: 10
Thanks: 0
Thanked 0 Times in 0 Posts
Default

thanks Matt

Reply With Quote
  #24 (permalink)  
Old October 28th, 2004, 10:34 AM
Authorized User
 
Join Date: Oct 2004
Location: Ballybrittas, Laois, Ireland.
Posts: 10
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Got it solved!

you can read the full article here:-
http://support.microsoft.com/default...b;en-us;264063
and as you can see, there are many workarounds which involve manually formatting the date and using jscript etc. but the easiest one for me was just to change the registry as follows:-

Setting the following value in the registry forces IIS 5.0 to pull the default system format for the Date and Time functions, but is not recommended for locales that use non-English character sets:


HKEY_USERS\.DEFAULT\Control Panel\International\Locale = 00000409

it was set at 00001809

Worked a treat!

Thanks again for all your help ;)
Oliver Dempsey



Reply With Quote
  #25 (permalink)  
Old October 29th, 2004, 09:22 PM
Friend of Wrox
 
Join Date: Jun 2003
Location: Bangalore, KA, India.
Posts: 2,480
Thanks: 0
Thanked 1 Time in 1 Post
Default

Good find. Glad that it was solved.

Cheers!

_________________________
- Vijay G
Strive for Perfection
Reply With Quote
  #26 (permalink)  
Old May 2nd, 2005, 01:24 AM
Friend of Wrox
Points: 6,664, Level: 34
Points: 6,664, Level: 34 Points: 6,664, Level: 34 Points: 6,664, Level: 34
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jan 2004
Location: Sydney, NSW, Australia.
Posts: 1,870
Thanks: 12
Thanked 20 Times in 20 Posts
Send a message via AIM to mat41
Default

Further to this very helpful post: Time to rebuild my machine came around again and I experienced the same date problem. Even though ALL system setting were set to AU (dd/mm/yyy) format the now function continued to display mm/dd/yyy.

Did the registry change above work for anybody?
HKEY_USERS\.DEFAULT\Control Panel\International\Locale = 00000409

It did not work for me, what did:
HKEY_USERS\.DEFAULT\Control Panel\International\Locale = 00000C09
That value will give you dd/mm/yyy



Wind is your friend
Matt
Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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 Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
date time format vb certified Pro VB 6 4 December 18th, 2009 08:16 AM
date format differs, need to force format somehow patricolsson ASP.NET 2.0 Basics 1 December 3rd, 2009 12:53 AM
date format differs, need to force format somehow patricolsson HTML Code Clinic 2 January 12th, 2006 05:55 AM
Format Date to time field KennethMungwira VB.NET 3 November 17th, 2003 11:48 AM
Format Date Time ganesh15 PHP How-To 2 August 20th, 2003 05:26 AM



All times are GMT -4. The time now is 10:55 PM.


Powered by vBulletin®
Copyright ©2000 - 2019, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.