var dt = DateTime.Now; string tmp = string.Format("{0}{1}-{2:00}-{3:00}.*.{4}", "", . dt.Year, dt.Month, dt.Day, ""); tmp
"2019-11-28.*."