473,399 Members | 2,858 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,399 software developers and data experts.

How do I format a DateTime in Spanish?

It seems it's going to require some magic combination of
Globalization.DateTimeFormatInfo and the CultureInfo objects but I can't
figure out how the piece fits together. Please explain. Thanks.
Nov 18 '05 #1
2 2292
DateTime dt = DateTime.Now
lblDateTime.Text = dt.ToString(new System.Globalization.CultureInfo("es-ES"))

Check MS Quickstart Tutorials
http://samples.gotdotnet.com/quickst...reencoding.asp

and

http://msdn.microsoft.com/library/de...ificculture.as

HTH
Suresh
----- Robert Dobson wrote: ----

It seems it's going to require some magic combination o
Globalization.DateTimeFormatInfo and the CultureInfo objects but I can'
figure out how the piece fits together. Please explain. Thanks

Nov 18 '05 #2
Thanks!

"Suresh" <an*******@discussions.microsoft.com> wrote in message
news:02**********************************@microsof t.com...
DateTime dt = DateTime.Now;
lblDateTime.Text = dt.ToString(new System.Globalization.CultureInfo("es-ES"));
Check MS Quickstart Tutorials:
http://samples.gotdotnet.com/quickst...eencoding.aspx

and

http://msdn.microsoft.com/library/de...ficculture.asp
HTH,
Suresh.

----- Robert Dobson wrote: -----

It seems it's going to require some magic combination of
Globalization.DateTimeFormatInfo and the CultureInfo objects but I can't figure out how the piece fits together. Please explain. Thanks.

Nov 18 '05 #3

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

Similar topics

6
by: Dario Di Bella | last post by:
Hi all, we have the following urgent issue affecting our development team. Initially we had one particular workstation that failed executing queries on a DB2 database, raising an invalid date...
15
by: Fritz Switzer | last post by:
I'd like to have a string assigned the value of a DateTime.AddMinutes(amount) so that the string is formatted in "HH:MM" format. For example: DateTime.Now.AddMinutes(30) returns "00:30" ...
2
by: Harikumar G | last post by:
Friends, My hardware sends me a date format like this 15:10:20.99 UTC Mon Oct 18 2004 I need to process this format and parse to a valid SQL datetime format, how can I do it more easily? My...
9
by: Jozef Jarosciak | last post by:
I have an application which imports fields from external source where date format of one the collumns is English (United States): M/d/yyyy. So July 1, 2005 equals to: 7/1/05 I am using this date...
1
by: Ugur Ekinci | last post by:
Hi , I have two Sql Server 2000 on seperate machines , First one accepts datetime format like ("dd.MM.yyyy hh:mm:ss") And Second one accepts datetime format like ("MM.dd.yyyy hh:mm:ss") 1-...
20
by: andreas | last post by:
When I copy a vb.net project using date formats from one PC with a windows date format f.e. dd/mm/yyyy to another PC having a format yy/mm/dd then I get errors. How can I change for a while in the...
7
by: Richiep | last post by:
I am trying to get a UK format date of dd/mm/yyyy. Why does the following subroutine not return a valid date in a web form? The date returned is #12:00:00 AM# but the date I entered into the...
9
by: Alok yadav | last post by:
i am using a webservice in which a method is serach. i use this method which accept a argument of date type in dd/MM/yyyy formate. i have a textbox which accept the date from the user, when i...
8
by: =?Utf-8?B?QWxsYW4gTWljaGFlbHM=?= | last post by:
Hello, I'm not sure what group to post this in. I couldn't find a localization discussion group. Briefly: I open 'myFile.resx' in WinRes. I modify the resource and save to Spanish in...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
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
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
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,...
0
tracyyun
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...
0
agi2029
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,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

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.