C
C#2y ago
Reki-

date time excises

Please help me do my code Note : I’m new c# learning
5 Replies
Reki-
Reki-2y ago
I can’t do it Please help me
TheRanger
TheRanger2y ago
DateTime.Now returns the current date and time from ur pc You want to add 3 Days to the date you input not to the current date and this is how you format your date date.ToString("yyyy-MM-dd")
Reki-
Reki-2y ago
like this?
TheRanger
TheRanger2y ago
ToString returns a string, and u have to assign that string to a variable or use it directly in your Console.WriteLine
Reki-
Reki-2y ago
thank you so much catlove