473,382 Members | 1,639 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,382 software developers and data experts.

How do you format a DateTime in Spanish?

The .Net documentation at
ms-help://MS.VSCC/MS.MSDNVS/vsent7/html/vxconFormattingIssues.htm#vxconforma
ttingissuesanchordates has this wonderful list of examples of *why* you
should use the provided APIs for date formatting but neglects to actually
explain *how* to use them :-) Will somebody please enlighten me? Thanks.
Nov 20 '05 #1
2 6909
Hi,

Me.Text = Now.ToString("D", New System.Globalization.CultureInfo("es-ES"))

http://msdn.microsoft.com/library/de...ringtopic4.asp

Ken

--------------------

"Robert Dobson" <tr****@hotmail.com> wrote in message
news:OZ**************@TK2MSFTNGP10.phx.gbl...
The .Net documentation at
ms-help://MS.VSCC/MS.MSDNVS/vsent7/html/vxconFormattingIssues.htm#vxconforma
ttingissuesanchordates has this wonderful list of examples of *why* you
should use the provided APIs for date formatting but neglects to actually
explain *how* to use them :-) Will somebody please enlighten me? Thanks.

Nov 20 '05 #2
Excellent! Thank you.

"Ken Tucker [MVP]" <vb***@bellsouth.net> wrote in message
news:Om**************@TK2MSFTNGP10.phx.gbl...
Hi,

Me.Text = Now.ToString("D", New System.Globalization.CultureInfo("es-ES"))

http://msdn.microsoft.com/library/de...ringtopic4.asp
Ken

--------------------

"Robert Dobson" <tr****@hotmail.com> wrote in message
news:OZ**************@TK2MSFTNGP10.phx.gbl...
The .Net documentation at
ms-help://MS.VSCC/MS.MSDNVS/vsent7/html/vxconFormattingIssues.htm#vxconforma ttingissuesanchordates has this wonderful list of examples of *why* you
should use the provided APIs for date formatting but neglects to actually explain *how* to use them :-) Will somebody please enlighten me? Thanks.


Nov 20 '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...
2
by: Robert Dobson | last post by:
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.
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...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
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: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
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:
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...
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...

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.