date("d/m/Y", strtotime($str));
public static string FORMAT_PDF = "dd/MM/yyyy"; public static string convertDateTimeFormatByStrDate(string strDate,string format) { DateTime temp = Convert.ToDateTime(strDate); return temp.ToString(format); }