One more idea. The more I think about it, the more it makes sense to me to implement isADateFormat() directly on FormatRecord instead of digging out (that's the problem I am facing, I do not know how to dig the values out when using HSSFWorkbook) the values from FormatRecord and transporting them to HSSFDateUtil. I think putting that method in FormatRecord would be a better design and also easier to use.
-- Miroslav Šulc Miroslav Šulc napsal(a): > Hi, > > I tried to figure out how to use HSSFDateUtil.isADateFormat() but didn't > find any info. What is not obvious to me is where should I get the > values for parameters of the method. > > Also I would expect HSSFDateUtil.isCellDateFormatted() would now call > HSSFDateUtil.isADateFormat() but it doesn't and it still checks only > internal formats. > > Also I'm not sure whether it is a purpose or just omission but > isADateFormat() will return false on datetime formats and maybe even on > time formats (I didn't check this yet). > > -- > Miroslav Šulc --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
