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

Whats the difference between CONCAT and CONCATENATE?
The newer CONCAT function can reference a range of cells. =CONCATENATE(A1,A2,A3,A4,A5) becomes =CONCAT(A1:A5)
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
2017-03-18T00:00:00.000Z03-18-2017

<colgroup><col style="width: 25pxpx"><col><col><col></colgroup><thead>
</thead><tbody>
[TD="align: center"]1[/TD]

[TD="align: right"][/TD]

</tbody>
Sheet18

[TABLE="width: 85%"]
<tbody>[TR]
[TD]Worksheet Formulas[TABLE="width: 100%"]
<thead>[TR="bgcolor: [URL=https://www.mrexcel.com/forum/usertag.php?do=list&action=hash&hash=DAE7F5]#DAE7F5[/URL] "]
[TH="width: 10px"]Cell[/TH]
[TH="align: left"]Formula[/TH]
[/TR]
</thead><tbody>[TR]
[TH="width: 10px, bgcolor: [URL=https://www.mrexcel.com/forum/usertag.php?do=list&action=hash&hash=DAE7F5]#DAE7F5[/URL] "]C1[/TH]
[TD="align: left"]=TEXT(LEFT(A1,10),"mm-dd-yyyy")[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[/TR]
</tbody>[/TABLE]

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

Forum statistics

Threads
1,223,910
Messages
6,175,318
Members
452,634
Latest member
cpostell

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