Show DateTime in Current FOrmat

Hello

I have a Datetime and I want to display it in that format which the current user system is using.
and I have a datetime but I only want to show the date, not the time...

How can I do that?

Thanks

Sven
RuttensoftAsked:
Who is Participating?
 
JackOfPHConnect With a Mentor Commented:
This will do the work...
YourDateTimeVariable.ToShortDateString
0
 
JackOfPHCommented:
or you can also use

YourDateTimeVariable.ToLongDateString
0
 
RuttensoftAuthor Commented:
Thanks........ too easy :-)
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.