<html>
<head>
<base href="https://bugs.documentfoundation.org/">
</head>
<body><table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Bug ID</th>
<td><a class="bz_bug_link
bz_status_UNCONFIRMED "
title="UNCONFIRMED - Format Cells adds ' character to the beginning of every date, and does NOT format cells to date data type"
href="https://bugs.documentfoundation.org/show_bug.cgi?id=120116">120116</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>Format Cells adds ' character to the beginning of every date, and does NOT format cells to date data type
</td>
</tr>
<tr>
<th>Product</th>
<td>LibreOffice
</td>
</tr>
<tr>
<th>Version</th>
<td>unspecified
</td>
</tr>
<tr>
<th>Hardware</th>
<td>All
</td>
</tr>
<tr>
<th>OS</th>
<td>All
</td>
</tr>
<tr>
<th>Status</th>
<td>UNCONFIRMED
</td>
</tr>
<tr>
<th>Severity</th>
<td>normal
</td>
</tr>
<tr>
<th>Priority</th>
<td>medium
</td>
</tr>
<tr>
<th>Component</th>
<td>Calc
</td>
</tr>
<tr>
<th>Assignee</th>
<td>libreoffice-bugs@lists.freedesktop.org
</td>
</tr>
<tr>
<th>Reporter</th>
<td>cajhne@gmail.com
</td>
</tr></table>
<p>
<div>
<pre>Created <span class=""><a href="http://bugs.documentfoundation.org/attachment.cgi?id=145166" name="attach_145166" title="simple csv file with dates to be sorted for testing this bug.">attachment 145166</a> <a href="http://bugs.documentfoundation.org/attachment.cgi?id=145166&action=edit" title="simple csv file with dates to be sorted for testing this bug.">[details]</a></span>
simple csv file with dates to be sorted for testing this bug.
I found this bug while trying to sort by date mm/dd/yyyy
So to turn the date column into a date data type or sorting I do the following:
1. Highlight the column
2. right-click and choose "Format Cells"
3. I choose Category "Date" and the Format "31/12/1999"
4. Click OK
Expected behaviour: Calc should format the selected cells to the Date data
type, so it can be sorted by date ascending/descending
What happens instead: Calc just adds a ' to the beginning of every single date
cell before the date string.
This is... baffling behaviour. :)
It notably does NOT format the column data to a date.
To reproduce, open any csv containing date data (like the attached file), and
try the above steps.
This is ver 6.0.3.2
running on Ubuntu Linux 18.04</pre>
</div>
</p>
<hr>
<span>You are receiving this mail because:</span>
<ul>
<li>You are the assignee for the bug.</li>
</ul>
</body>
</html>