Top "Iformatprovider" questions

Provides a mechanism for retrieving an object to control formatting.

What does IFormatProvider do?

I was playing around with the Datetime.ParseExact method, and it wants an IFormatProvider... It works inputting null, but what …

c# asp.net iformatprovider
Why DateTime.ParseExact(String, String, IFormatProvider) need the IFormatProvider?

If we're using the ParseExact method for exact date-time's parsing using a specified format, why do we need to provide …

c# datetime iformatprovider
How to create and use a custom IFormatProvider for DateTime?

I was trying to create an IFormatProvider implementation that would recognize custom format strings for DateTime objects. Here is my …

c# iformatprovider
How to use NumberFormatInfo to remove parenthesis for negative values

We're currently using the following for creating US dollar values in our web application: string.Format("{0:C0}", dollarValue ); In this …

c# .net globalization iformatprovider
Convert.ToString(Decimal, IFormatProvider) or String.Format

i've seen the question Odd decimal type behavior for ToString(IFormatProvider) this is my test code // Define an array of …

c# cultureinfo iformatprovider
StringBuilder append byte without formatting

DateTime todayDateTime = DateTime.Now; StringBuilder todayDateTimeSB = new StringBuilder("0"); todayDateTimeSB.Append(todayDateTime.ToString("MMddyyyy")); long todayDateTimeLongValue = Convert.ToInt64(todayDateTimeSB.ToString()); // convert …

c# stringbuilder iformatprovider
Date.Parse with a custom formatter

This seems like a simple exercise, but I'll be darned if I can find an example of doing it right …

vb.net parsing datetime iformatprovider