Hi,
I have installed VS.NET 2000 on an english version of
windows 2000 professional and in control panel I've chosen
Regional Options and on the general Tab I have Swedish in
Your locale(location ). In the Input Locales tab I have
Swedish as the only language and set as default. In the
Date tab short date is showed as yyyy-MM-dd and is showed
in all applications in a correct way.
I also have a production server with an english version of
windows 2000 professional with identical settings as
described above in the Regional Options. There is .Net
Framework v1.1 installed, swedish version (also tried with
english version).
Althoug this all dates in all forms are shown in
'MM-dd-yyyy' format.
Several popup forms with dates on them doesn't work
anymore and noone in this country will accept this format.
Any ideas?
TIA
/Kenneth 2 1513
The ToString() method of the DateTime object can be used to format dates.
So, you could use MyDateTime.ToSt ring("yyyy-MM-dd").
For further info on the ToString method of the DateTime object, see this
article on MSDN - http://msdn.microsoft.com/library/de...tringtopic.asp
Hope this helps,
Mun
--
Munsifali Rashid http://www.munsplace.com/
"Kenneth" <ke***********@ chello.se> wrote in message
news:0d******** *************** *****@phx.gbl.. . Hi,
I have installed VS.NET 2000 on an english version of windows 2000 professional and in control panel I've chosen Regional Options and on the general Tab I have Swedish in Your locale(location ). In the Input Locales tab I have Swedish as the only language and set as default. In the Date tab short date is showed as yyyy-MM-dd and is showed in all applications in a correct way.
I also have a production server with an english version of windows 2000 professional with identical settings as described above in the Regional Options. There is .Net Framework v1.1 installed, swedish version (also tried with english version).
Althoug this all dates in all forms are shown in
'MM-dd-yyyy' format.
Several popup forms with dates on them doesn't work anymore and noone in this country will accept this format.
Any ideas?
TIA
/Kenneth
Hi Mun,
Yes it helped.
Although I used another method
Format(Ctype(my Date,Date),"yyy y-MM-dd")
in all textboxes, in grids I used TemplateColumns instead
of BoundColumn
/Kenneth -----Original Message----- The ToString() method of the DateTime object can be used
to format dates.So, you could use MyDateTime.ToSt ring("yyyy-MM-dd").
For further info on the ToString method of the DateTime
object, see thisarticle on MSDN - http://msdn.microsoft.com/library/default.asp?
url=/library/en-
us/cpref/html/frlrfsystemdate timeclasstostri ngtopic.asp Hope this helps,
Mun
-- Munsifali Rashid http://www.munsplace.com/
"Kenneth" <ke***********@ chello.se> wrote in message news:0d******* *************** ******@phx.gbl. .. Hi,
I have installed VS.NET 2000 on an english version of windows 2000 professional and in control panel I've
chosen Regional Options and on the general Tab I have Swedish
in Your locale(location ). In the Input Locales tab I have Swedish as the only language and set as default. In the Date tab short date is showed as yyyy-MM-dd and is
showed in all applications in a correct way.
I also have a production server with an english version
of windows 2000 professional with identical settings as described above in the Regional Options. There is .Net Framework v1.1 installed, swedish version (also tried
with english version).
Althoug this all dates in all forms are shown in
'MM-dd-yyyy' format.
Several popup forms with dates on them doesn't work anymore and noone in this country will accept this
format. Any ideas?
TIA
/Kenneth
. This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: Bambero |
last post by:
Hello all
Problem like in subject. There is no problem when I want to count days
between two dates. Problem is when I want to count years becouse of
leap years.
For ex.
between
2002-11-19 2003-11-19
|
by: Brent Webster |
last post by:
This problem seems to occur dependant on the computer system settings.
I have no issues when the system date is set as M/d/yyyy but I do
have a problem with the system date set as d/M/yyyy.
I have a text box on a web page that holds the date ie)
document.frmTimesheet.tWeekFrom.value = 19/12/2004
theDate = new Date(document.frmTimesheet.tWeekFrom.value);
// split into day, month, year
|
by: John |
last post by:
I'm building a report where each row represents one month and its 1 to
5 weeks. A report query groups the source table date into a "month and
year" expression. A subreport links to the main report using the
query's "month and year" expression.
Problem is I can't figure out how to group the source table's dates
into a "Mmmm yyyy" and then link the subreport to the relevant week of
that "Mmmm Yyyy".
source table:
|
by: Lindie |
last post by:
The more I read the more confused I get. Too much on dates calulations
in the groups.
I need to know how often a book has been loaned out over the past year-
52 weeks.
My table has
Book
DateOut
Total
|
by: carl.barrett |
last post by:
Hi,
I have a continuous form based on a query ( I will also be creating a
report based on the same query).
There are 2 fields:
Date Obtained and Date Of Expiry
I want a further 3 columns to the right of these 2 fields to show the
| |
by: Rookie Card |
last post by:
I know this is a very common issue but cannot find a thread that
resolves the issue.
I need to re-format my dates to "MMM d, yyyy". The problem I have is I
have an MSSQL database that allows <NULLS>.
I'm using this code to format the dates:
<%# IIF((dsCase.FieldValue("inj_beg", Container) <>
nothing),DateTime.Parse(dsCase.FieldValue("inj_beg",
Container)).ToString("MMM d, yyyy"), "") %>
|
by: Rookie Card |
last post by:
Issue - Reformating the Dates in ASP.NET from a MSSQL Database that has
<NULL> values in a SmallDateTime Field
to read "Dec 8, 2000" instead of "12/8/2000 12:00:00 AM"
(As you might already know "DateTime.Parse" will throw an exception
when it comes accross a <NULL> date value so some logic has to be
written.
|
by: M Skabialka |
last post by:
I am creating my first Visual Studio project, an inventory database. I have
created a form and used written directions to add data from a table to the
form using table adapters, data sets, etc.
I imported a table from an Access database which has some date fields. Many
of these dates have never been filled in, so are nulls. If I look directly
into the table data from Visual Studio it shows NULL.
However, when I scroll from record to...
|
by: helpless |
last post by:
Access 2003 - I am trying to calculate the difference between a specific date 5/1/2007 (not in a data field) and other dates that ARE in a field called Birth Date. I am trying to have it fill into an Age field (in years only) by comparing the date above to the Birth Date field. I have tried this and it doesn't work:
=DateDiff("yyyy", , ) Displays the variance in years between the values of the Birthday1 and Birthday2 fields. (from Access...
|
by: clarencelai |
last post by:
Hi..
I need to run some monthly reports that requires the user to pick a date (MMM-YYYY) from a drop down list.
How can I list the dates (MMM-YYYY) in the combo box such that it would automatically include the current month, the last three months and the next three months? For example, the current month is Oct 2007, the combo list should list Jul 2007, Aug 2007, Sep 2007, Oct 2007, Nov 2007, Dec 2007 and Jan 2008.
Cheers!
Clarence
|
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look !
Part I. Meaning of...
| |
by: Oralloy |
last post by:
Hello folks,
I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>".
The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed.
This is as boiled down as I can make it.
Here is my compilation command:
g++-12 -std=c++20 -Wnarrowing bit_field.cpp
Here is the code in...
|
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth.
The Art of Business Website Design
Your website is...
|
by: tracyyun |
last post by:
Dear forum friends,
With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
|
by: agi2029 |
last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own....
Now, this would greatly impact the work of software developers. The idea...
|
by: conductexam |
last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one.
At the time of converting from word file to html my equations which are in the word document file was convert into image.
Globals.ThisAddIn.Application.ActiveDocument.Select();...
|
by: 6302768590 |
last post by:
Hai team
i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
| |
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
|
by: bsmnconsultancy |
last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...
| |