Wrox Programmer Forums

Need to download code?

View our list of code downloads.

| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
.NET Framework 2.0 For discussion of the Microsoft .NET Framework 2.0.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the .NET Framework 2.0 section of the Wrox Programmer to Programmer discussions. This is a community of tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Reply
 
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old August 13th, 2004, 04:59 AM
Authorized User
 
Join Date: Jun 2004
Location: Aurangabad, Maharashtra, India.
Posts: 54
Thanks: 0
Thanked 1 Time in 1 Post
Default Why CultureInfo?

Hi,

Can anybody explain me what exactly this CultureInfo all about.
What if I just wanted to format a date in different style. Should I have to use this CustureInfo and this is only solution or, does .Net Framework provide some other functions to do that.

In VB6 it was very easy, just put a format function and put the string stating style you want. or other way was to use formatdatetime.

why should i use this difficult method to just to change the date formatting



Vinod Pawar
Software Developer
India
__________________
Vinod Pawar
United States
Reply With Quote
  #2 (permalink)  
Old August 13th, 2004, 09:50 AM
Friend of Wrox
Points: 3,489, Level: 24
Points: 3,489, Level: 24 Points: 3,489, Level: 24 Points: 3,489, Level: 24
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jun 2003
Location: Central, NJ, USA.
Posts: 1,102
Thanks: 0
Thanked 2 Times in 2 Posts
Default

I am not VERY familiar with the CultureInfo... But I would say to use it because it gives you flexibility to make many changes based on the "culture", not just the date.

Of course, you can do the quick and dirty method and reformat the date and time- but I'd rather do it the complete and better way.

Hal Levy
Web Developer, PDI Inc.

NOT a Wiley/Wrox Employee
Reply With Quote
  #3 (permalink)  
Old August 13th, 2004, 09:58 AM
jminatel's Avatar
Wrox Staff
Points: 18,940, Level: 59
Points: 18,940, Level: 59 Points: 18,940, Level: 59 Points: 18,940, Level: 59
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: May 2003
Location: Indianapolis, IN, USA.
Posts: 1,945
Thanks: 73
Thanked 139 Times in 101 Posts
Default

Vinod:
Have you looked at any of the information at:
http://www.dotnet247.com/247referenc...ltureInfo.aspx
regarding localization and culture info? Doug Sevin's article:
http://www.dotnet247.com/247referenc...3D2EDD38B.dcik
looks especially relevent.

Also, is your question really in regard to this in .NET 2.0? i.e. are you asking this question in the right forum here at p2p.wrox.com or would one of our other forums be better suited? Just checking.



Jim Minatel
Senior Acquisitions Editor
Wiley Technology Publishing
WROX Press
Jim's Book of the week: ASP.NET 2.0 Beta Preview
Reply With Quote
  #4 (permalink)  
Old August 13th, 2004, 11:26 PM
Authorized User
 
Join Date: Jun 2004
Location: Aurangabad, Maharashtra, India.
Posts: 54
Thanks: 0
Thanked 1 Time in 1 Post
Default

Hi,

Sorry Jim, I should not have put this question in here rather I would have gone for an appropriate forum.

I'll take care of this in future.

Vinod Pawar
Software Developer
India
Reply With Quote
  #5 (permalink)  
Old August 14th, 2004, 05:10 PM
Friend of Wrox
 
Join Date: Jun 2003
Location: Harrisburg, PA, USA.
Posts: 1,998
Thanks: 0
Thanked 3 Times in 3 Posts
Default

Hello,

In regards to dates and currencies, CultureInfo has the capabilities to do "translate" the dates. This class does this, but I don't know if there is others. Sometimes, one of the overloaded methods allows for a param of CultureInfo, which that's all you have to pass in.

Brian
Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Trying to serialize CultureInfo object cgbissio C# 0 July 17th, 2003 10:27 AM



All times are GMT -4. The time now is 10:57 AM.


Powered by vBulletin®
Copyright ©2000 - 2019, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.