My intention is to print date like this,
04.10.2015
I have tried,
d=`date '+%d%m%y'` But the problem what was happening, it was printing those dates which are two digits (10 to 31). But 1 to 9 date was not printing like 01..02..09 For the single date, the out was coming like this,
4.10.2015 I think its digit problem. What format should I have to use to print single date in double digit?
%dand%mspecifiers do use loading zeros.