custom format for date and decimals

  • Thread starter Thread starter roundcrisis
  • Start date Start date
R

roundcrisis

Hi there;

I m trying to find a way to create some sort of helper or something so
all dates and numbers are displayed in a format (perhpas taken froma
config file or database)
for example in an XML file have date format "dd/MM/yyyy hh:mm" and
decimals with 2 places
How can i do this whitout changing the existing code too much? (ie
having to go to each date field and add "ToString(...)..."
Cheers
 
Without changing the current culture, you'll have to specifically use a
format string with ToString(...).
 
Without changing the current culture, you'll have to specifically use a
format string with ToString(...).

--
Browsehttp://connect.microsoft.com/VisualStudio/feedback/and vote.http://www.peterRitchie.com/blog/
Microsoft MVP, Visual Developer - Visual C#






- Show quoted text -

it doesnt look like current culture is what I m looking for, it seems
like it will have non required effects.
Any ideas?
 
Back
Top