I need to take a date format from a database dump and Concatenate it into a new cell to format it the way I need so I can perform calculations. I have the calculations working but I need to figure out how to insert leading zeroes for single-digit months and years so that all dates end up with the same number of characters (YYYYMMDD, not YYYYMD). I have played with custom formatting the cells using ## but can't seem to get it to work with concatenate. Row1 is column headers, Row2 is formulas, Row3 is desired results. Any help would be greatly appreciated!
<tbody>
</tbody>
Any help would be greatly appreciated! | A | B | C | D | E |
1 | Submit Date | Closed Date | CONC Submit | CONC Closed | Duration |
2 | 5/1/2014 2:03:08 AM | 5/9/2014 4:34:24 PM | =CONCATENATE(YEAR(A2),MONTH(A2),DAY(A2)) | =CONCATENATE(YEAR(B2),MONTH(B2),DAY(B2)) | =D2-C2 |
3 | 20140501 | 20140509 | 8 |
<tbody>
</tbody>