Web Wiz - Green Windows Web Hosting

  New Posts New Posts RSS Feed - Session.LCID problem
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Session.LCID problem

 Post Reply Post Reply
Author
Pegaso View Drop Down
Mod Builder Group
Mod Builder Group


Joined: 13 February 2003
Location: Switzerland
Status: Offline
Points: 138
Post Options Post Options   Thanks (0) Thanks(0)   Quote Pegaso Quote  Post ReplyReply Direct Link To This Post Topic: Session.LCID problem
    Posted: 14 October 2004 at 9:13am

Hi,

i'm back whit a new great problem .

I insert in a Form the date ex. 09/01/2004 (9 Jan 2004) and i store it to the database. When i call it back the value is 01/09/2004 (1 sept 2004).

The great problem is that in the database i have stored over 1'500 dates in dd/mm/yyyy format and i can see it correctly thanks the session.LCID command.

How can i save the dates correctly (dd/mm/yyyy) in the database stored on a Server that has the format mm/dd/yyyy.

Thank's to all for the answer.

 

Back to Top
zaboss View Drop Down
Senior Member
Senior Member


Joined: 20 August 2002
Location: Romania
Status: Offline
Points: 454
Post Options Post Options   Thanks (0) Thanks(0)   Quote zaboss Quote  Post ReplyReply Direct Link To This Post Posted: 14 October 2004 at 9:24am
It's not how you store them that matters, but how you process them...
Working with different databases, mySQL, Access, SQL Server, I have developped a way of inserting them by a specific format and retrieving them by a specific format. I don't care how it is stored in the db, as long as I am triggering the right figures for months and days using the DatePart function.
Inserting them in the right formula is crucial as, especialy Access tends to mistake days for months in day's numbers that are less than 12 (for instance 3 of may might be mistaken for 5 of march or your example)...
Cristian Banu
Soft 4 web
Back to Top
 Post Reply Post Reply

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.08
Copyright ©2001-2026 Web Wiz Ltd.


Become a Fan on Facebook Follow us on X Connect with us on LinkedIn Web Wiz Blogs
About Web Wiz | Contact Web Wiz | Terms & Conditions | Cookies | Privacy Notice

Web Wiz is the trading name of Web Wiz Ltd. Company registration No. 05977755. Registered in England and Wales.
Registered office: Web Wiz Ltd, Unit 18, The Glenmore Centre, Fancy Road, Poole, Dorset, BH12 4FB, UK.

Prices exclude VAT at 20% unless otherwise stated. VAT No. GB988999105 - $, € prices shown as a guideline only.

Copyright ©2001-2026 Web Wiz Ltd. All rights reserved.