473,387 Members | 1,606 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

Culture Info & Datetime values

Hi all,

Do dates & time values always get inserted according to the user's main
language setting in their browser? Like, if I had an application that
somehow relied on comparing dates and times but the app spanned across a
number of languages would these comparison's still work? Would the value of
Now() in England being inserted into a database be the same fomat and ready
for comparison as the Now() value in Russia? Or do I even have to worry
about these things and let the culture object do its work in presenting the
values?

Cheers & thanks, Joe
Nov 21 '05 #1
2 1804
it depends on where your call now(). if its on the server, then it doesn't
matter where the user is, it the servers time. if you store it as a
datetime, then language does not matter. if you mean now() in the client
box, its their local timezone, so you will need to track this.

-- bruce (sqlwork.com)
"Joe Van Meer" <jv******@eastlink.ca> wrote in message
news:OX****************@tk2msftngp13.phx.gbl...
Hi all,

Do dates & time values always get inserted according to the user's main
language setting in their browser? Like, if I had an application that
somehow relied on comparing dates and times but the app spanned across a
number of languages would these comparison's still work? Would the value
of
Now() in England being inserted into a database be the same fomat and
ready
for comparison as the Now() value in Russia? Or do I even have to worry
about these things and let the culture object do its work in presenting
the
values?

Cheers & thanks, Joe

Nov 21 '05 #2
Hi Bruce,

Ok good :) Thanks for answering....I wasn't sure if the culture object
somehow converted the person's time/date format or not. I am using datetime
and it is the server's time so I should be ok. I appreciate your help,
thanks mate!

Cheers, Joe
"Bruce Barker" <br******************@safeco.com> wrote in message
news:em**************@TK2MSFTNGP14.phx.gbl...
it depends on where your call now(). if its on the server, then it doesn't
matter where the user is, it the servers time. if you store it as a
datetime, then language does not matter. if you mean now() in the client
box, its their local timezone, so you will need to track this.

-- bruce (sqlwork.com)
"Joe Van Meer" <jv******@eastlink.ca> wrote in message
news:OX****************@tk2msftngp13.phx.gbl...
Hi all,

Do dates & time values always get inserted according to the user's main
language setting in their browser? Like, if I had an application that
somehow relied on comparing dates and times but the app spanned across a
number of languages would these comparison's still work? Would the value of
Now() in England being inserted into a database be the same fomat and
ready
for comparison as the Now() value in Russia? Or do I even have to worry
about these things and let the culture object do its work in presenting
the
values?

Cheers & thanks, Joe


Nov 23 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: reidarT | last post by:
Is it possible to control the calendar with Culture Info. Actually the name of the days and months. And how do I activate it_ regards Reihaa
1
by: Chris Porter | last post by:
Just as I thought I was understanding doing timezone offsets I ran the following code : CultureInfo en = new CultureInfo("en-GB"); Thread.CurrentThread.CurrentCulture = en;...
3
by: Ian O'Rourke | last post by:
Okay, I have a problem with the en-GB culture object My computer is set to the UK and for UK date formats, etc If I set my culture to en-GB in the web.config everything works fine with UK dates...
4
by: Anne Catterick | last post by:
Hi, I have an british ASP.Net 2.0 application which is doing what (should) be very simple. But I am having issues. On my page I have a GridView as follows (some tags excluded for easy...
5
by: Robert W. | last post by:
My app runs perfectly when run in Canada or the U.S. But others are experiencing problems. So I switched my computer to the UK culture and immediately saw a problem. This line was failing: ...
0
by: Lucky | last post by:
hi guys! i've got one interesting problem. one of my utility is generating data machine specific, i mean the data is generated in the culture that the machine has. my problem is with the...
4
by: Terry | last post by:
I have a TextBox with a date such as 15/01/2006 which I want to cast into a variable as a short date 15/01/06, also I need to cast a time such as 07:30 A.M. into a variable as a short time. What...
6
by: Yofnik | last post by:
Hello, A C# desktop application is failing for an international customer because dates are being parsed incorrectly. I need to set the culture to "en-US" so the dates parse correctly. Is there any...
2
by: helveticus | last post by:
Is there a way to keep datetime expressions culture invariant? My app is culture dependent and contains a series of datetime settings that are saved in cookies. The cookie date strings raise...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.