private void BindDate(string startDate, string endDate) { DateTime dStartDate; DateTime dEndDate; DataSet dt = new DataSet(); //Check if the string has the valid date format if (datetime.TryParse(startDate, out dStartDate) && datetime.TryParse(endDate, out dEndDate)) {
datetime.TryParse
DateTime.TryParse
if (DateTime.TryParse(startDate, out dStartDate) && DateTime.TryParse(endDate, out dEndDate)) {
private void BindDate(string startDate, string endDate) { DateTime dStartDate; DateTime dEndDate; DataSet dt = new DataSet(); //Check if the string has the valid date format if (DateTime.TryParse(startDate, out dStartDate) && DateTime.TryParse(endDate, out dEndDate)) {
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)