DateTime Get Today Tomorrow and Yesterday in C#

0
25



Yesterday.
Here we subtract one day from the current day. We do this by adding -1 to the current day. This is necessary because no “Subtract Days” method is provided.

Tomorrow.
To figure out tomorrow, we add one using the Add() method. This is useful with date queries in databases. We use the AddDays method.

Nguồn:https://wijstaanvooronzegrondrechten.org/

LEAVE A REPLY

Please enter your comment!
Please enter your name here