このような月のキーがあります"201208"
。
SQL からデータを読み取り、 として返していDataTable
ます。それから私は私のをループしていDataTable
ます。
For Each dr As DataRow In dt.Rows
Dim s As String = dr.Item(0)
Next
私s
の文字列は次のようになります。"201208"
この文字列を に変換する方法はyear, first day of the month and last day of the month
?
文字列を 2 つの別々の s に分割する方法を探していますdim
。
どんな提案でも大歓迎です。