Welcome
2019年1月17日 星期四
C# datetime.now.tostring("yyyy/MM") 顯示為yyyy-MM的解決方法
DateTime.Now.ToString("yyyy
/
MM")
Output
2019-01
which is not expected, what I want is 2019/01
Use single quote to solve this problem:
DateTime.Now.ToString("yyyy
'/'
MM")
Output
2019/01
Yeah!!!!
沒有留言:
張貼留言
‹
›
首頁
查看網路版
沒有留言:
張貼留言