Search
 
SCRIPT & CODE EXAMPLE
 

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);
Comment

PREVIOUS NEXT
Code Example
Csharp :: how do you make a 2D object follow another 2D object in unity 2D 
Csharp :: linq sum 
Csharp :: wpf get function name 
Csharp :: if checkbox checked in c# 
Csharp :: system.net.mail send html message 
Csharp :: c# get process file location 
Csharp :: solid principles c# 
Csharp :: dictionary to list c# 
Csharp :: c# streamwriter add new line 
Csharp :: c# string slice 
Csharp :: get selected item datagrid wpf 
Csharp :: Get the Photon Player GameObject 
Csharp :: ef core include 
Csharp :: How to type custom backcolor on c# winform 
Csharp :: how to get the size an array in unity 
Csharp :: the same schemaid is already used for type swagger 
Csharp :: set current date to textbox in asp.net 
Csharp :: unity render to texture2d 
Csharp :: c# replace multiple characters 
Csharp :: c# count directories in directory and subdirectories 
Csharp :: encrypt with public key and decrypt with private key c# 
Csharp :: C# compare date values 
Csharp :: unity position ui element 
Csharp :: migrationbuilder insert data example 
Csharp :: unity camera fade to black 
Csharp :: c# round to closest multiple 
Csharp :: C# loop through the registry searching for keys containing 
Csharp :: print c# 
Csharp :: c# callback using delegate 
Csharp :: how to change color of part from the text in textblock wpf 
ADD CONTENT
Topic
Content
Source link
Name
6+8 =