Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CSHARP

subtract days c#

using System;

var today = DateTime.Now;
var yesterday= today.AddDays(-1).ToString("yyyy-MM-dd");
Console.WriteLine("Yesterday's Date is {0}",yesterday);
Source by dotnetfiddle.net #
 
PREVIOUS NEXT
Tagged: #subtract #days
ADD COMMENT
Topic
Name
1+4 =