skip to main | skip to sidebar

Matters Most

Let us find out answers for commonly asked IT questions…

Tuesday, January 03, 2006

How to express time in ISO 8601 format?
DateTime myTimestamp = DateTime.Now;
string t = String.Format("{0:u}",myTimestamp);
t = t.Remove(19,1);
string s = String.Format("{0}.{1:fff}Z",t,myTimestamp);
Posted by Parkskip at 6:21 PM

No comments:

Post a Comment

Newer Post Older Post Home
Subscribe to: Post Comments (Atom)

Blog Archive

  • ►  2008 (1)
    • ►  March (1)
  • ►  2007 (2)
    • ►  October (1)
    • ►  June (1)
  • ▼  2006 (41)
    • ►  November (1)
    • ►  October (2)
    • ►  September (2)
    • ►  August (1)
    • ►  July (2)
    • ►  May (2)
    • ►  April (3)
    • ►  March (10)
    • ►  February (8)
    • ▼  January (10)
      • In C#, I take an entity and serialize it to XML an...
      • Is there another way I can create the SSL certific...
      • Calculate the Last Logon Time in Windows 2003
      • Service Pack 1 (SP1) for ADAM
      • How to express time in ISO 8601 format?DateTime my...
      • Is there a way to get DataTable from DataView? I a...
      • My ASP.NET form is many screens long. After user p...
      • When ADSI binding fails, can the program know that...
      • Native XML Web Services for SQL Server 2005
      • URL Rewriting in ASP.NET
  • ►  2005 (28)
    • ►  December (11)
    • ►  November (17)

Links

  • MIT: Tech Review

About Me

Parkskip
View my complete profile