Digg StumbleUpon LinkedIn YouTube Flickr Facebook Twitter RSS Reset

Conversion de String en ‘DateTimeOffset’


{filelink=19636}

using System;
 
public class DateString
{
   public static void Main()
   {  
 
        string dateString;
        DateTimeOffset offsetDate; 
 
        dateString = "01/01/2011";
        offsetDate = DateTimeOffset.Parse(dateString);
        Console.WriteLine(offsetDate.ToString());
   }
}

No comments yet.

Leave a Comment