'Integerの場合 Dim intValue As Integer = 123 Dim result1 As String = intValue.ToString("D13") Dim result2 As String = $"{intValue:D13}" 'Stringの場合 Dim strValue As String = "123" Dim result3 As String = strValue.PadLeft(13, "0")