Skip to content

How to convert a UnixTimestamp to DateTime in a csv file

Soumendra Mishra

Asked Dec 29, 2017, 8:19 AM EST1 answer
Share
LinkedInX
I am receiving a csv file from google which content first value unixtime format how can I convert to date and time and parse to datagridview. I am also sending csv data to datagrid but unable to convert unixtime to data and time please someone help me.
 
the csv file data
1514346300,934.25,934.25,934.25,934.25,1310
1,931.05,933.5,931,933.05,85916
2,932.15,932.35,931.05,931.2,438633
 

1 Answer

Know the answer? Post it. Somebody with the same question will find it here.

  • 0
    Hello, Convert unix timestamp to datetime in vb.
     
    Dim newDateTime As System.DateTime = New System.DateTime(1970, 1, 1, 0, 0, 0, 0)
    newDateTime = newDateTime.AddSeconds(nTimestamp)
     
    0