C
C#4w ago
Jexs

✅ Should i know this?

Hi this is my code:
DateTime Today = DateTime.Now;
Console.WriteLine(Today.ToString("D")
DateTime Today = DateTime.Now;
Console.WriteLine(Today.ToString("D")
i clicked the pop up window (the one where you hover your mouse over something pops up) How am i supposed to read this? and i found this
public string ToString([StringSyntax(StringSyntaxAttribute.DateTimeFormat)] string? format)
{
return DateTimeFormat.Format(this, format, null);
}
public string ToString([StringSyntax(StringSyntaxAttribute.DateTimeFormat)] string? format)
{
return DateTimeFormat.Format(this, format, null);
}
Where can i find some more about this should i be worried about it? sorry for double post
5 Replies
ero
ero4w ago
Just navigate to the definition of DateTimeFormat.Format and look at what that does
Angius
Angius4w ago
Documentation c# date string format, click the first result you get from DuckDuckGo/Ecosia/QWant/Google/whatever
Jexs
JexsOP4w ago
ive never seen any method with the use of ( [ ] ) in it its totally new to me
333fred
333fred4w ago
Look up attributes
Jexs
JexsOP4w ago
okay ty fred!

Did you find this page helpful?