I am attmepting to change a date time format for a search from ddd MMM dd HH:mm:ss zzz yyyy to just simply yyyy-MM-dd i'm not able to get the syntax right in my conversion so any help would be great.
public DateTime CreatedAt { get { return DateTime.ParseExact(this.created_at, "ddd MMM dd HH:mm:ss zzz yyyy", CultureInfo.InvariantCulture); } } public DateTime SearchDate { get { return DateTime.ParseExact(CreatedAt.ToString(), "yyyy-MM-dd", CultureInfo.InvariantCulture); } } searchDate is my issue.