如何串 20160928063905.000000 + 480 着決心轉化爲日期時間的ListView vb.net與解析字符串日期時間格式installdate
Win32_OperatingSystem InstallDate
Else
log.BackColor = Drawing.Color.Aqua
log.SubItems(1).Text = client.Machine_Name
log.SubItems(2).Text = client.Network_Information.IPAddress(0)
log.SubItems(3).Text = DateTime.Now.ToShortDateString()
log.SubItems(4).Text = client.Network_Information.Name ' caption
log.SubItems(5).Text = client.Network_Information.InstallDate
log.SubItems(6).Text = client.Network_Information.ID
log.SubItems(7).Text = client.Network_Information.Manufacturer
End If
Next
Dim item As New ListViewItem
item.Text = EventLogListView.Items.Count + 1
item.SubItems.Add(client.Machine_Name)
item.SubItems.Add(client.Network_Information.IPAddress(0))
item.SubItems.Add(DateTime.Now.ToShortDateString())
item.SubItems.Add(client.Network_Information.Name) 'captions
item.SubItems.Add(client.Network_Information.InstallDate)
item.SubItems.Add(client.Network_Information.ID.ToString)
item.SubItems.Add(client.Network_Information.Manufacturer)
item.BackColor = Drawing.Color.Aqua
EventLogListView.Items.Add(item)
這很難讀[?如何提問](http://stackoverflow.com/help /如何問)採取[旅遊](http://stackoverflow.com/tour)並寫一個或兩個完整的句子與你的問題所需的信息? –
對不起,我的問題是如何將此字符串轉換爲20160928063905.000000 + 480這種格式yyyyMMdd在listview中。對不起英語 –