I have the following function in php which works out a cut of date which is the Tuesday the week prior to the actual date. As I am new to C#, any suggestions on how to do similar in C#?
Code:
function getCutOffDate ($tDate) {
$cDays = (int) date("w",strtotime($tDate));
return strtotime($tDate." -".($cDays + 5)." days");
}
Comment