We made thousands of pre-made source code pieces for easy implementation in your own programming projects. ByteScout Spreadsheet SDK can read date from cell. It can be used from VB.NET. ByteScout Spreadsheet SDK is the SDK that can write and read, modify and calculate Excel and CSV spreadsheets. Most popular formulas are supported. You may import or export data to and from CSV, XML, JSON as well as to and from databases, arrays.
This rich sample source code in VB.NET for ByteScout Spreadsheet SDK includes the number of functions and options you should do calling the API to read date from cell. Just copy and paste the code into your VB.NET application’s code and follow the instruction. Code testing will allow the function to be tested and work properly with your data.
Our website provides trial version of ByteScout Spreadsheet SDK for free. It also includes documentation and source code samples.
On-demand (REST Web API) version:
Web API (on-demand version)
On-premise offline SDK for Windows:
60 Day Free Trial (on-premise)
Imports Bytescout.Spreadsheet
Imports System.IO
Module Module1
Sub Main()
' Create new Spreadsheet
Dim document As New Spreadsheet()
document.LoadFromFile("Sample.xls")
' Get worksheet by name
Dim worksheet As Worksheet = document.Workbook.Worksheets.ByName("Sheet1")
' Check dates
For i As Integer = 0 To 3
' Set current cell
Dim currentCell As Cell = worksheet.Cell(i, 0)
If currentCell.ValueDataTypeByNumberFormatString = Constants.NumberFormatType.DateTime Then
' read date time
Dim datet As DateTime = currentCell.ValueAsDateTime()
' Write to console
Console.WriteLine("{0}", datet.ToShortDateString())
Else
' Write message
Console.WriteLine("cell does not contain date time value")
End If
Next
' Close document
document.Close()
' Write message
Console.Write("Press any key to continue...")
' Wait user input
Console.ReadKey()
End Sub
End Module
60 Day Free Trial or Visit ByteScout Spreadsheet SDK Home Page
Explore ByteScout Spreadsheet SDK Documentation
Explore Samples
Sign Up for ByteScout Spreadsheet SDK Online Training
Get Your API Key
Explore Web API Docs
Explore Web API Samples
60 Day Free Trial or Visit ByteScout Spreadsheet SDK Home Page
Explore ByteScout Spreadsheet SDK Documentation
Explore Samples
Sign Up for ByteScout Spreadsheet SDK Online Training
Get Your API Key
Explore Web API Docs
Explore Web API Samples
also available as: