A couple of fixes

This commit is contained in:
2015-09-25 12:52:21 -04:00
parent b420193c3d
commit a6ea6df177
5 changed files with 31 additions and 4 deletions
+3
View File
@@ -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;