Hi, in text file I am trying to print current date and time.
I am using below code
and getting below results, you can see results are changing every time for month.
But if I use
I am getting the correct result, see below:
I am not able to understand why it is happening, if I just use the month in uppercase why it is working fine and why not with small case. If I put only month in uppercase code is not looking so good in formatting way, also if I put all in upper case
then I am getting below result:
Unable to understand the behavior of this. Can anyone please explain this.