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

Formatting a string with Date/time picker parsing

$
0
0
I am trying to format a string to a list box with date input from a date/time picker and can't figure out how to parse it to do this. So far I have:

Dim Customer As String
Dim Video As String
Dim DueDate As Object
Dim Fee As Double
Dim fmtstr As String = "{0, -20}{1, 6}{2, 12}{3, 12}"
lstRentals.Items.Add(String.Format(fmtstr, Customer, Video, DueDate))

Any help would be appreciated!

Viewing all articles
Browse latest Browse all 27052

Trending Articles



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