I want to convert specific/Input date to different timezone. I have tried below code.
dateYMD="2019/2/28 12:23:11.46"
timesydney=$(TZ=Australia/Sydney date -d "$dateYMD" +%s)
But above code give me a below error....
date: Not a recognized flag: d
Usage: date [-u] [+"Field Descriptors"]