How can I visualize the way various DateTime formats will display?

前端 未结 4 2037
粉色の甜心
粉色の甜心 2020-12-30 17:10

I want to be able to quickly reference how various DateTime formats will appear, rather than embark upon a laborious process of edit, compile, gawk, and recurse until satisf

4条回答
  •  时光取名叫无心
    2020-12-30 17:46

    I did this once and... What I did was create a Windows Application, put a Label and a TextBox on it and attached onto the TextBox Change event a

    Label1.Text = DateTime.Now.ToString(TextBox1.Text)
    

    Pretty simple and helps you try out things instantly.

提交回复
热议问题