quinta-feira, 6 de dezembro de 2012
Teste Data Time C#
Testar formato de datas
DateTime now = DateTime.Now;
MessageBox.Show(now.ToString("d"));
MessageBox.Show(now.ToString("D"));
MessageBox.Show(now.ToString("f"));
MessageBox.Show(now.ToString("F"));
MessageBox.Show(now.ToString("g"));
MessageBox.Show(now.ToString("G"));
MessageBox.Show(now.ToString("m"));
MessageBox.Show(now.ToString("M"));
MessageBox.Show(now.ToString("o"));
MessageBox.Show(now.ToString("O"));
MessageBox.Show(now.ToString("s"));
MessageBox.Show(string.Format("{0:yyyy-MM-ddTHH:mm:sszzz}", now));
MessageBox.Show(now.ToString("T"));
MessageBox.Show(now.ToString("u"));
MessageBox.Show(now.ToString("U"));
MessageBox.Show(now.ToString("y"));
MessageBox.Show(now.ToString("Y"));
Assinar:
Postar comentários (Atom)
Nenhum comentário:
Postar um comentário