input: $ date -d '13 JAN 1995' +%A
output:
usage: date [-jnRu] [-d dst] [-r seconds] [-t west] [-v[+|-]val[ymwdHMS]] ...
[-f fmt date | [[[mm]dd]HH]MM[[cc]yy][.ss]] [+format]
expected output: Friday
.
First I thought this is because of my older version of bash 3.x but later I upgraded to 5.0. Still having this problem.
I read here for date formats Convert date formats in bash