Quantcast
Channel: VBForums - Visual Basic .NET
Viewing all articles
Browse latest Browse all 27192

Converting date to the day of the month

$
0
0
hello

I'm Trying to convert a string containing a Date.
Code:

Dim sDate as string =" Feb 2012"
dim InDateFormat as date = cdate(Sdate).toshortdatestring

The result would be 02/1/2013, the VB automatically converted the date into first day of the month of feb, what I would to happen is automatically convert it to the last day of the month instead of first day.. is this possible?

please let me know
Thank you.

Viewing all articles
Browse latest Browse all 27192

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>