-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How to read date from excel sheet #1126
Comments
Thanks for your issue, you can read raw cell values and convert them to cell, err := f.GetCellValue("Sheet1", "E7", excelize.Options{RawCellValue: true})
if err != nil {
fmt.Println(err)
return
}
excelDate, err := strconv.ParseFloat(cell, 64)
if err != nil {
fmt.Println(err)
return
}
excelTime, err := excelize.ExcelDateToTime(excelDate, false)
if err != nil {
fmt.Println(err)
return
}
fmt.Println(excelTime) |
Thanks dude |
Hi @SmartZou, which version of the library you're using? Please give a try with the master branch code, and if it still not work please provide your input file attachment without confidential info if you can. |
In the Excel file there is a cell:
E7 => 3/14/2000
I'm trying to get it...
Output: 03-14-00
output as sting format.
How can I convert it into go time.Time format
Thanks
The text was updated successfully, but these errors were encountered: