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![TABLE="class: grid, width: 500, align: center"]
<tbody>[TR]
[TD] Any help would be greatly appreciated![/TD]
[TD]A[/TD]
[TD]B[/TD]
[TD]C[/TD]
[TD]D[/TD]
[TD]E [/TD]
[/TR]
[TR]
[TD]1[/TD]
[TD]Submit Date[/TD]
[TD]Closed Date[/TD]
[TD]CONC Submit[/TD]
[TD]CONC Closed[/TD]
[TD]Duration[/TD]
[/TR]
[TR]
[TD]2[/TD]
[TD]5/1/2014 2:03:08 AM[/TD]
[TD]5/9/2014 4:34:24 PM[/TD]
[TD]=CONCATENATE(YEAR(A2),MONTH(A2),DAY(A2))[/TD]
[TD]=CONCATENATE(YEAR(B2),MONTH(B2),DAY(B2))[/TD]
[TD]=D2-C2[/TD]
[/TR]
[TR]
[TD]3[/TD]
[TD][/TD]
[TD][/TD]
[TD] 20140501[/TD]
[TD]20140509[/TD]
[TD]8 [/TD]
[/TR]
</tbody>[/TABLE]
<tbody>[TR]
[TD] Any help would be greatly appreciated![/TD]
[TD]A[/TD]
[TD]B[/TD]
[TD]C[/TD]
[TD]D[/TD]
[TD]E [/TD]
[/TR]
[TR]
[TD]1[/TD]
[TD]Submit Date[/TD]
[TD]Closed Date[/TD]
[TD]CONC Submit[/TD]
[TD]CONC Closed[/TD]
[TD]Duration[/TD]
[/TR]
[TR]
[TD]2[/TD]
[TD]5/1/2014 2:03:08 AM[/TD]
[TD]5/9/2014 4:34:24 PM[/TD]
[TD]=CONCATENATE(YEAR(A2),MONTH(A2),DAY(A2))[/TD]
[TD]=CONCATENATE(YEAR(B2),MONTH(B2),DAY(B2))[/TD]
[TD]=D2-C2[/TD]
[/TR]
[TR]
[TD]3[/TD]
[TD][/TD]
[TD][/TD]
[TD] 20140501[/TD]
[TD]20140509[/TD]
[TD]8 [/TD]
[/TR]
</tbody>[/TABLE]