c# - Adding DateTime to ListView? -


How do I add a date value with 2 string values ​​in a ListView? I have tried ...

  string [] line = {time.view Toaster (), "example text", "example text"}; ListView1.Items.AddRange (line);  

But I get conversion errors.

I do not think that you have any questions specifically to do with a ListView It seems that you just need to know how to extract the string from time to time.

Experiment with "T" standard format ():

  time. Value Toastring ("T")  

This will be the following for our N:

3:51:24 PM

< / Div>

Comments

Popular posts from this blog

c# - How to capture HTTP packet with SharpPcap -

jquery - SimpleModal Confirm fails to submit form -

php - Multiple Select with Explode: only returns the word "Array" -