Public Class Tester Public Shared Sub Main Dim intNumber As Integer = 12345 Console.WriteLine(intNumber.ToString("D10")) End Sub End Class
0000012345