basic datetime format question

P

PJ6

What's the easiest way to get a string from a datetime that omits the time?
I want to respect whatever local format there is for dates, so it can't
involve something like "mm/dd/yyyy".

Paul
 
C

Cor Ligthert [MVP]

Paul,

I prefer this one
\\\
Dim datestring As String = Now.ToString("d")
///
I hope this helps,

Cor
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top