Wrox Programmer Forums
Go Back   Wrox Programmer Forums > ASP.NET and ASP > ASP 3 Classic ASP Active Server Pages 3.0 > Classic ASP Basics
| 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 software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
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




 
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
 
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

 
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



 
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
 
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




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





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.