What is the Date function in c# ? and how I can count the days from a date till now ? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

What is the Date function in c# ? and how I can count the days from a date till now ?

Like the days number from the Date 1/August/2019 to the Date Now is 25 days !

25th Aug 2019, 2:04 PM
Fuad Abdalsslam
Fuad Abdalsslam - avatar
2 Answers
+ 1
DateTime for the date and TimeSpan for the difference. Take a look at the microsoft docs how to use them.
26th Aug 2019, 4:09 AM
Michael F
Michael F - avatar
0
Please add 'C#' to Relevant Tags to add scoping clarity of your question : ) (Edit) Thank you for editing the tag my friend 👍
25th Aug 2019, 5:07 PM
Ipang