How to convert datetime to date string string only

Jeff Stiegler 466 Reputation points
2023-06-06T16:19:44.89+00:00

How do I exclude the time element from the code below.

    Beg_Date.ToString("MM/dd/yyyy")

Returns #05/01/2023 12:00:00 AM#

I want only the date...no time.

Developer technologies VB
{count} votes

Accepted answer
  1. Anonymous
    2023-06-06T18:05:16.9866667+00:00

    duplicated post

    0 comments No comments

7 additional answers

Sort by: Most helpful
  1. Deleted

    This answer has been deleted due to a violation of our Code of Conduct. The answer was manually reported or identified through automated detection before action was taken. Please refer to our Code of Conduct for more information.


    Comments have been turned off. Learn more

  2. Deleted

    This answer has been deleted due to a violation of our Code of Conduct. The answer was manually reported or identified through automated detection before action was taken. Please refer to our Code of Conduct for more information.


    Comments have been turned off. Learn more

  3. Deleted

    This answer has been deleted due to a violation of our Code of Conduct. The answer was manually reported or identified through automated detection before action was taken. Please refer to our Code of Conduct for more information.


    Comments have been turned off. Learn more

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.