Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
なぜですか
string date = string.Format("{0:mmddyyHHmmss}", DateTime.Now);
私に420813104204をくれます
040813ではないでしょうか...?
mmddyyHHmmSSと一致させようとしています
MMではなく月に使用する必要があります。mmは月ではなくmm分です。
MM
mm
string date = string.Format("{0:MMddyyHHmmss}",
フォーマットの詳細については、こちらを参照してください。