Date format now

How do I get only day + month + year in C #?

+3
source share
2 answers

A vague question.

Do you need this as a string?

DateTime.Now.ToString("MM/dd/yyyy")

There are also Day, Month, Year values ​​that you can work with in the DateTime structure.

+7
source

Source: https://habr.com/ru/post/1795357/


All Articles