Private Sub DispPurchase()
Dim dt As DataTable = _SQLpublish.PurchaseInfomation(mastercostomerCd)
DataGridView1.Rows.Clear()
If dt.Rows.Count = 0 Then
btnUpdate.Enabled = False
btndelete.Enabled = False
btnIchiran.Enabled = False
Else
For i = 0 To dt.Rows.Count - 1
DataGridView1.Rows.Add()
DataGridView1.Rows(i).Cells(0).Value = dt.Rows(i).Item("商品名")
DataGridView1.Rows(i).Cells(1).Value = dt.Rows(i).Item("メーカー")
DataGridView1.Rows(i).Cells(2).Value = dt.Rows(i).Item("購入日")
DataGridView1.Rows(i).Cells(3).Value = dt.Rows(i).Item("担当者")
Next End If
上記のコードで購入日をDataGridViewに表示するとyyyy/MM/dd 00:00:00で表示されてしまいます。yyyy/MM/ddで表示したいのですがどうしたらいいでしょうか?
回答2件
あなたの回答
tips
プレビュー
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。