A couple of fixes
This commit is contained in:
@@ -104,6 +104,9 @@ namespace MileageTraker.Web.Utility
|
||||
else if (value is DateTime)
|
||||
formatString = @"MM/DD/YYYY hh:mm:ss";
|
||||
|
||||
if (p.Name == "GasPurchased") // format to the .000 place
|
||||
formatString = "#,##0.000";
|
||||
|
||||
int intValue; // write int-looking values as numbers
|
||||
if (value is string && int.TryParse((string) value, out intValue))
|
||||
value = intValue;
|
||||
|
||||
Reference in New Issue
Block a user