format YYYYMMDD to MM/DD/YYYY by vb.net

G

Guest

Hi everyone

i want to format YYYYMMDD to MM/DD/YYYY by vb.net
is there any format function for this process in vb.net

thanks for your help
 
M

Mattias Sjögren

i want to format YYYYMMDD to MM/DD/YYYY by vb.net
is there any format function for this process in vb.net


DateTime.ParseExact("20071117", "yyyyMMdd",
Nothing).ToString("MM\/dd\/yyyy")


Mattias
 

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