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

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

am 17.11.2007 06:31:01 von tvin

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

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

am 17.11.2007 11:42:33 von mattias.dont.want.spam

>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

--
Mattias Sjögren [C# MVP] mattias @ mvps.org
http://www.msjogren.net/dotnet/ | http://www.dotnetinterop.com
Please reply only to the newsgroup.