I need to check whether the end date in datatable is present or not without using for loop condition
Hi @sruthesanju ,
Can you pls provide us the sample or attach screenshot of Input Data and expected Output.
Hi @sruthesanju
Can you provide us input and expected output. We can help you with condition.
Regards
Please provide the input and output
Probably you are looking for this.
Replace dt with your DataTable variable & StartDate with your end date's present in DataTable Column Name
Thanks,
Ashok ![]()
bascially we use this expression which gives output as boolean
dt.AsEnumerable.Any(Function(a) datetime.ParseExact(a("ColumnName").ToString,"dd/MM/yyyy",system.Globalization.CultureInfo.InvariantCulture).Equals(cdate(inputstr)))
What is the dtmToCheck
it is your input value to check
