on 03-27-2017 10:19 AM
Dear Experts,
I want to concatenate date and time fields and do a query operation.
Currently , i have fromdate and todate (both date type) ;I use the below code to query
var result== Results.Where(dtRule => today.IsBetween(dtRule.FromDate, dtRule.ToDate)|| (dtRule.FromDate.ToString() == "" && dtRule.ToDate.ToString() == ""))
This is working fine to filter by dates.
But now business needs to add new filter by date also.So I have added 2 new fields fromtime and totime (both time datatypes).
Now how can i filter the results between fromdate+fromtime and todate+totime.
Thanks in advance.
Thanks,
Resmi
Hello Resmi,
Do you have Date and Time fields in your collection or also a DateTime field too?
Bye,
. Horst
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
93 | |
10 | |
10 | |
9 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.