ASP Programming
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsProgramming Languages - MoreASP Programming

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old December 18th, 2003, 07:22 AM
Haekel Haekel is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Dec 2003
Posts: 40 Haekel User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 6
Date display is driving me nuts

Hi,

same set-up as in my other problems. I have ASP-pages, an IIS and a connecting Access db via ODBC.
Problem is the following:
I have recently migrated the system from my personal notebook to a local server (on my work PC), and then to a test environment. Each time, the date displays are completely screwed up. I am guessing this is due to the fact that for all set-up, I somehow managed to use different languages (English, German, Spanish).
DB entry works fine, cause I have a JS handler to check for correct input, and change that then so Access will handle it. JS is ok in this case, cause my users won't disable it (or they will be fired ;-), just joking).
However, when reading from the DB it always displays the data in a wrong format.
Where is the culprit? The browser (wouldn't think so), the IIS, or Access? Is there an easy solution to fix the prob? I mean, other than checking every date display every time and then manually tweaking the data so it will fit the needed format?


Thank, this is driving me nuts.

Reply With Quote
  #2  
Old December 18th, 2003, 09:16 AM
imbrokn imbrokn is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Sep 2001
Location: NJ
Posts: 428 imbrokn User rank is Corporal (100 - 500 Reputation Level)imbrokn User rank is Corporal (100 - 500 Reputation Level)imbrokn User rank is Corporal (100 - 500 Reputation Level)imbrokn User rank is Corporal (100 - 500 Reputation Level) 
Time spent in forums: 11 h 34 m 8 sec
Reputation Power: 11
Send a message via AIM to imbrokn
It displays the data on the webpage in the wrong format? If that is the case just use formatdatetime() function (for more info, http://www.devguru.com/technologies...atdatetime.html). If those format's don't suite your needs you can always just use the datepart (for more info see, http://www.devguru.com/technologies...f/datepart.html) function to create a function that will format your dat the way you want it.

Reply With Quote
  #3  
Old December 18th, 2003, 09:25 AM
Haekel Haekel is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Dec 2003
Posts: 40 Haekel User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 6
Thank you.
The problem is the different time formats in German, English and Spanish. I.e. the German date format is dd.mm.yyyy, while in English it is mm/dd/yyyy, obviously.
But I will give the DatePart() function a try.

Thanks for the hint!

Merry Christmas to you.

Reply With Quote
  #4  
Old January 27th, 2004, 01:22 PM
gintom gintom is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Sep 2003
Location: Essex, UK
Posts: 164 gintom User rank is Private First Class (20 - 50 Reputation Level)gintom User rank is Private First Class (20 - 50 Reputation Level) 
Time spent in forums: 17 h 16 m 46 sec
Reputation Power: 6
The english date is also dd/mm/yyyy. It is the americans who have their date as mm/dd/yyyy.

I would look at the settings on your server, if your server is setup within america or has an american loaded format then you will need to change it to the Engish format (or the geman format in your case).

Reply With Quote
Reply

Viewing: Dev Shed ForumsProgramming Languages - MoreASP Programming > Date display is driving me nuts


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump



 Free IT White Papers!
 
How to Present Effectively Online
This white paper offers practical and actionable advice on the key steps that any presenter should consider as they plan and execute a Webinar or online meeting.

 
Open Source Security Myths
Open Source Software (OSS) is computer software whose source code is available to the general public with relaxed or non-existent intellectual property restrictions (or arrangement such as the public domain), and is usually developed with the input of many contributors.

 
Power and Cooling Capacity Management for Data Centers
This paper describes the principles for achieving power and cooling capacity management.

 
Scalable, Fault-Tolerant NAS for Oracle - The Next Generation
For several years NAS has been evolving as a storage alternative for Oracle databases, and for good reason: NAS is quite often the simplest, most cost-effective storage approach for Oracle. Learn about the benefits that HP's approach to scalable NAS brings to Oracle environments in this comprehensive white paper.

 
Understanding Web Application Security Challenges
This white paper discusses many common threats and preventive measures for Web application security, and explains what you can do to help protect your organization.

 

Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2009 by Developer Shed. All rights reserved. DS Cluster 1 hosted by Hostway
Stay green...Green IT