OutFront Forums
     Home    Register     Search      Help      Login    

Sponsors
Frontpage website templates
Creative Website Templates for FrontPage, Dreamweaver, Flash, SwishMax
Shopping Cart Software
Ecommerce software integrated into Frontpage, Dreamweaver and Golive templates. No monthly fees and available in ASP and PHP versions.
Website Templates
We also have a wide selection of Dreamweaver, Expression Web and Frontpage templates as well as webmaster tools and CSS layouts.

Follow Us
On Facebook
On Twitter
RSS
Via Email

Recent Posts
Todays Posts
Most Active posts
Posts since last visit
My Recent Posts
Mark posts read

 

Session.lcid question

 
View related threads: (in this forum | in all forums)

Logged in as: Guest
Users viewing this topic: none
Printable Version 

All Forums >> Web Development >> ASP, PHP, and Database >> Session.lcid question
Page: [1]
 
 
Dealer58

 

Posts: 174
From: New York (was in Germany)
Status: offline

 
Session.lcid question - 3/13/2003 1:00:21   
I have a web on a server in the UK. I need the date to read from the DB and output it as mm/dd/yyyy as opposed to the dd/mm/yyyy reading that I am getting.

I am also getting the Pound sign instead of th $ sign that I need.

I understand that if I set the Session.lcid= something I can correct this problem.

I look at the 4guys fromrolla site and they sent me to the MSDN library but I cannot find the correct table. It' s too confusing.

Does anybdy know what the session.lcid values are for the US date and $ sign?

CC
Doug G

 

Posts: 1193
Joined: 12/29/2001
From: SoCal
Status: offline

 
RE: Session.lcid question - 3/13/2003 1:36:35   
The link off this page goes to the table of locale ID' s for me

http://msdn.microsoft.com/library/en-us/iisref/htm/ref_vbom_sesoplcid.asp


_____________________________

======
Doug G
======

(in reply to Dealer58)
Stuart at Cherry

 

Posts: 121
From: Leeds, West Yorkshire, UK
Status: offline

 
RE: Session.lcid question - 3/14/2003 4:00:23   
I think you' ll find it' s 1033

Cool.

_____________________________

***born to be wild***

(in reply to Dealer58)
Dealer58

 

Posts: 174
From: New York (was in Germany)
Status: offline

 
RE: Session.lcid question - 3/14/2003 17:42:44   
Well I' m half way there!:)

Here' s what I put on the page:

<%
session.LCID = 1033
EndDate = FP_FieldVal(fp_rs," EndDate" )
%>

I got the $ sign but the date value is still dd/mm/yyyy :)

What did I do wrong?

CC

(in reply to Dealer58)
Dealer58

 

Posts: 174
From: New York (was in Germany)
Status: offline

 
RE: Session.lcid question - 3/14/2003 18:01:17   
Correction,

<%
session.LCID = 1033
EndDate = FP_FieldVal(fp_rs," EndDate" )
%>

does not work! Errors on page!

<%
session.LCID = 1033
%>

returns the $ sign and dd/mm/yyyy. I need mm/dd/yyyy

What to do?
Please Advise

CC


< Message edited by dealer58 -- 3/14/2003 10:02 PM >

(in reply to Dealer58)
Dealer58

 

Posts: 174
From: New York (was in Germany)
Status: offline

 
RE: Session.lcid question - 3/15/2003 11:18:33   
I have come to the conclusion that the session.lcid has no effect on changing the date format that is being passed from a DB whose regional settings are set otherwise.

When the work is done without involving a variable that is being passed from the DB e.g.

<%
session.LCID = 1033
Respnse.Write Date()
%>

The result is correct.

<%
session.LCID = 1033
%>

or something like

<%
session.LCID = 1033
EndDate = FP_FieldVal(fp_rs," EndDate" )
%>

has no effect on the date format that the DB is passing, even thought the one being stored is in the correct format.

Please Advise
Regards
CC




(in reply to Dealer58)
ASPPlayground

 

Posts: 122
Joined: 6/25/2002
From: Toronto, Canada
Status: offline

 
RE: Session.lcid question - 3/16/2003 20:21:49   
quote:

session.lcid has no effect on changing the date format

It does, but you need to use FormatDateTime() to get it right.

<%
session.LCID = 1033
EndDate = FormatDateTime(FP_FieldVal(fp_rs," EndDate" ))
%>

will definitely work.

_____________________________

Samuel Chou

ASPPlayground.NET Developer

(in reply to Dealer58)
Dealer58

 

Posts: 174
From: New York (was in Germany)
Status: offline

 
RE: Session.lcid question - 3/17/2003 18:49:28   
Hi Samuel

I tried that, and alot variations even in the DRW and I still get the same result or " Object Required"

Take a look for yourself:

http://www.tn391649xxjhy.co.uk/pages/scripts/Search2.asp?CategoryNumber=100&Category=Antiques-General

Notice the Items that end on April 15, 2003 then look down the list.

The End date for Item 1000174 IS April4, 2003 (in the DB that is!)

CC

(in reply to Dealer58)
Page:   [1]

All Forums >> Web Development >> ASP, PHP, and Database >> Session.lcid question
Page: [1]
Jump to: 1





New Messages No New Messages
Hot Topic w/ New Messages Hot Topic w/o New Messages
Locked w/ New Messages Locked w/o New Messages
 Post New Thread
 Reply to Message
 Post New Poll
 Submit Vote
 Delete My Own Post
 Delete My Own Thread
 Rate Posts