ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Worksheet Functions (https://www.excelbanter.com/excel-worksheet-functions/)
-   -   date format (https://www.excelbanter.com/excel-worksheet-functions/113547-date-format.html)

EdJack

date format
 
How do I change "2006/10/02" to "20061002"

Trevor Shuttleworth

date format
 
If you are simply talking about how a date is displayed:

If it is formatted as yyy/mm/dd, Format as yyymmdd

If it is formatted as yyy/dd/mm, Format as yyyddmm

(I can't tell from the example)

Regards

Trevor


"EdJack" wrote in message
...
How do I change "2006/10/02" to "20061002"




Bob Phillips

date format
 
If it is a string, then

=SUBSTITUTE(A1,"/","")

--

HTH

Bob Phillips

(replace xxxx in the email address with gmail if mailing direct)

"EdJack" wrote in message
...
How do I change "2006/10/02" to "20061002"





All times are GMT +1. The time now is 12:47 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com