I have OpenOffice Calc column with the following entries:
10/21/12 09:39 AM
12/20/12 05:35 AM
04/30/13 12:47 PM
How do I extract the date part so that output is?:
10/21/12
12/20/12
04/30/13
I have OpenOffice Calc column with the following entries:
10/21/12 09:39 AM
12/20/12 05:35 AM
04/30/13 12:47 PM
How do I extract the date part so that output is?:
10/21/12
12/20/12
04/30/13
Just apply
ROUNDDOWN()orINT()to the date value to strip the time information; you may have to apply date formatting manually.The date value
10/21/12 09:39 AMis internally stored as41203.4020833333by Calc. Calc uses integers for dates and fractions for time values. So, the date part of10/21/12 09:39 AMis41203. Rounding down the value41203.4020833333to41203effectively strips the time information, leaving just the date (to be precise: the result is10/21/12 00:00 AM- so it's just a matter of formatting the cell as date or date/time.