In the excel file I received, I have a date column in custom format (01/18/2024 17:14:08). From this, I have to extract the date in yyyymmdd format. I tried using Text & Int functions, but getting incorrect results. Refer the table below. Looks simple, but am I making any mistake? Experts in this forum, can you please advise how can I get the date in yyyymmdd format?
Book1 | |||||
---|---|---|---|---|---|
B | C | D | |||
1 | Text | Int | |||
2 | 01/18/2024 17:14:08 | yyyy0118 | 01/18/2024 00:00:00 | ||
Sheet1 |
Cell Formulas | ||
---|---|---|
Range | Formula | |
C2 | C2 | =TEXT(B2,"yyyymmdd") |
D2 | D2 | =INT(B2) |