String date time format

Posted by Phil on Stack Overflow See other posts from Stack Overflow or by Phil
Published on 2010-05-13T13:43:48Z Indexed on 2010/05/13 14:04 UTC
Read the original article Hit count: 214

Filed under:
|
|
|

Hi i am using the vimeo API and i want to convert the string to a short date formate {0:d} or {0:dd/mm/yyyy}.

This is my code but doesnt seem to be working for me.

    select new VimeoVideo
                     {
                         Date = String.Format("{0:d}",(item.Element("upload_date").Value)),
                     };
        return Vids.ToList();
    }
    public class VimeoVideo
    {
        public string Date { get; set; }
    }   

Any help would be much appreciated

Thanks

© Stack Overflow or respective owner

Related posts about datetime

Related posts about api