How do I format DateTime or TimeZone/TimeZoneInfo to display Three letters?

前端 未结 3 440
半阙折子戏
半阙折子戏 2021-01-14 23:21

I\'m working with a spec that calls for a peculiar Datetime format that I haven\'t necessarily had to work with yet.

At Process time, an OFX (1 not 2) datetime must

3条回答
  •  伪装坚强ぢ
    2021-01-14 23:48

    If you will use r it will give you RFC format. Will it help you.

    String.Format("{0:r}", dt);  // "Sun, 09 Mar 2008 16:05:07 GMT"   RFC1123
    

    You can also check this SO link, if it can help you.

提交回复
热议问题