简体   繁体   中英

How to read the exact date format from Excel cell having formula field with Apache POI?

I have Excel date format of the cell as:
MM-DD-YYYY HH:MM

I need to fetch the same format irrespective of any format given in excel using apache poi

Can someone help ?

What have you tried? Please try using DataFormatter as shown in first part of Getting the cell contents. If that not fulfills your needs then please show used code in your question together with what the code produces and what you wants to get. @axel ritcher

This worked

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM