I have a date that is in a format called ‘String(Generalized-Time)’, see MSDN linked here , I need to check if this date is today and if it is do X.
To complicate this slightly I have a int that is in this example 4, if the int is 4 then I want to check if the date that is in the ‘String(Generalized-Time)’ format is in the last 4 days, the int maybe 7, 24, 30 etc.
How would I write this? I’m a novice and very grateful of the help.
Thanks
Like this:
To check if it’s anytime within the last four days,
or, as an extension method