First, THANK YOU for any help.
I have a date variable called
Contract_End_Date
and it is in the format of 11/18/23.
I need to set a 90 day reminder to renew before this date.
I need the output to be ddd.hh:mm:ss for the tool, I only care about the days as the hours, minutes and seconds are not as important so they can all be 0. It's just the days that really matter.
Note: Not sure if this matters, but this is for SpringCM aka Docusign CLM.
Here is what I have, but I am getting a "Console Error":
string contractEndDateStr = "11/18/23";
DateTime contractEndDate = DateTime.ParseExact(contractEndDateStr, "MM/dd/yy", null);
DateTime reminderDate = contractEndDate.AddDays(-90);
string reminderFormatted = $"{(reminderDate - DateTime.MinValue).Days:D3}.00:00:00";
Console.WriteLine("90-Day Reminder: " + reminderFormatted);
What I have tried:
Thank you for your help! I am working on taking a C# course, I can read and edit, but some of the writing from scratch is not easy for me.