Multiple choice technology architecture

I have set the variable dateString to the following format [export dateString=date -u +%Y%m%d]. What would be Output when I echo $dateString?

  1. YYYYMONDD

  2. MMDDYYYY

  3. YYYYMMDD

  4. YYYYDDMM

Reveal answer Fill a bubble to check yourself
C Correct answer
Explanation

The date command with format +%Y%m%d produces output as YYYYMMDD where %Y is 4-digit year, %m is 2-digit month, and %d is 2-digit day. The -u flag uses UTC time. Option C correctly shows YYYYMMDD format. Options A, B, and D have incorrect month/day order or placeholder names.