Quantcast
Channel: How to remove time portion of date in C# in DateTime object only? - Stack Overflow
Viewing all articles
Browse latest Browse all 42

Answer by MehraD for How to remove time portion of date in C# in DateTime object only?

$
0
0

None of the above answers solved my problem on winforms.

the easiest way to reach ONLY date is the simple function in Datetime:

DateTime dt = DateTime.now;String BirthDate = dt.ToShortDateString();

You will only have date in Birthday string .


Viewing all articles
Browse latest Browse all 42

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>