string.Format

//金额格式

string.Format("{0:###,##0.##}", CurrentInfo.TotalAmount);

//日期格式
string.Format("{0:yyyy-MM-dd}", CurrentInfo.OrderGoodsDate);

原文地址:https://www.cnblogs.com/FH-cnblogs/p/3419498.html