20100224

ToString() or not ToString()?

    public string GetDates(DateTime ArrivalDate)
    {
        DateTime ardate = Convert.ToDateTime(ArrivalDate.ToString());
        string arrivaldate = ardate.ToShortDateString().ToString();
        return arrivaldate;
    }

For greenhorns ('cause I got a few complains like „what the f__k are you talking about on those pages” :), the story goes like this:

Click on "next blog"!



:)

No comments:

Post a Comment