I am new to linux. I am wondering why date command is not expanding inside single quotes.

so if i give command like below

```
d=$(date +%m%d) 
echo 'A1D$d'

```

Output is `A1D$d`

But If i give without quotes its working...

```
d=$(date +%m%d) 
    echo A1D$d

```

Output is `A1D0603`

Can anyone pls help me in this

I need **date command to expand in the single quote** becoz....in **aws api** commands i need to used **date command inside the single quotes** like below

```
aws s3api list-objects --bucket ui-dl-weather-ecmwf-ltf --prefix daily/ --query "Contents[?contains(Key, 'A1D$(date +%m%d)')]" --output text | awk '{print $2, $4}' >> "$FILESIZE

```