Convert date format?

excelbetter

Board Regular
Joined
Oct 13, 2010
Messages
190
How do you convert this date format: [FONT=&quot]2017-03-18

To this: 03-18-2017

Any help is appreciated.[/FONT]
<style type="text/css">p.p1 {margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px 'Lucida Grande'; color: #000000}</style>
 

Excel Facts

Last used cell?
Press Ctrl+End to move to what Excel thinks is the last used cell.
have you tried selecting the cells,

Right click > Format Cells > Custom > "select the TYPE box" > enter dd-mm-yyyy

This should achieve what your after in the cleanest way I think.
 
Upvote 0
have you tried selecting the cells,

Right click > Format Cells > Custom > "select the TYPE box" > enter dd-mm-yyyy

This should achieve what your after in the cleanest way I think.

Thank you. That worked.

One more if you have time....

How do I convert the following to just a date? <style type="text/css">p.p1 {margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px 'Lucida Grande'; color: #000000}</style>2017-03-18T00:00:00.000Z
 
Upvote 0
have you tried selecting the cells,

Right click > Format Cells > Custom > "select the TYPE box" > enter dd-mm-yyyy

This should achieve what your after in the cleanest way I think.

Hi,

Think you mean mm-dd-yyyy
 
Upvote 0
Thank you. That worked.

One more if you have time....

How do I convert the following to just a date? <style type="text/css">p.p1 {margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px 'Lucida Grande'; color: #000000}</style>2017-03-18T00:00:00.000Z

Hi,

How about this:


Book1
ABC
12017-03-18T00:00:00.000Z03-18-2017
Sheet18
Cell Formulas
RangeFormula
C1=TEXT(LEFT(A1,10),"mm-dd-yyyy")
 
Upvote 0
THank you. When I do this and then create a pivot table, it tells me it can't group by date. I think I must have the date format wrong, or maybe it's text?
 
Upvote 0
Hi,

How about this:

ABC
12017-03-18T00:00:00.000Z03-18-2017

<colgroup><col style="width: 25pxpx"><col><col><col></colgroup><thead>
</thead><tbody>
</tbody>
Sheet18

Worksheet Formulas
CellFormula
C1=TEXT(LEFT(A1,10),"mm-dd-yyyy")

<thead>
</thead><tbody>
</tbody>

<tbody>
</tbody>

WHen I do this the resulting cell shows #NAME ?
 
Upvote 0

Forum statistics

Threads
1,215,128
Messages
6,123,204
Members
449,090
Latest member
bes000

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top