Hi Folks,
I’m stuck with dynamic dates, please help me with this issues.
Step 1: From website “Query Date” format is “yyyy-mm-dd hh:mm”. I want current date in
“yyyy-mm-dd” and this should be dynamic selector.
Step 2: From website “Date Range” format is “yyyy-mm-dd” - “yyyy-mm-dd”, this is month to date and this also should be dynamic selector.
For reference I have attached screenshot
ExtractDataTable.Select(“[Report Name]=‘SJIT_Orders_Report’ AND [Query Date] Like '%”+DateTime.Now.ToString(“dd-MMM,”)+“%’ AND [Date Range] = ‘2023-10-01 - 2023-10-25’”).CopyToDataTable