custom format for date and decimals

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
 
G

Guest

Without changing the current culture, you'll have to specifically use a
format string with ToString(...).
 
R

roundcrisis

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?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top