格式化字符串format

xiaoxiao2026-03-10  9

[size=medium][size=x-small][color=green] //格式化字符串format //格式化成为货币 string str = string.Format("{0:C}\n",-123.2332f); //格式化为断时间 string str1 = string.Format("{0:d}", DateTime .Now); Response.Write(str1.ToString()+"<br>"); Response.Write(str .ToString());[/color][/size][/size]
转载请注明原文地址: https://www.6miu.com/read-5045675.html

最新回复(0)