Hey mates, it is not giving me zero even for the month, in the query below.
You know first I tried it with "Mon", like
SELECT TO_CHAR(SYSDATE, 'FMDD-Mon-YYYY') from dual
and then thought to remove zero from the month part too and did this
SELECT TO_CHAR(SYSDATE, 'FMDD-FMMM-YYYY') from dual
and an error occured.
Finally, I got the desired result without adding "FM" in the month part. It means to me that adding FM is not something related to "DD", it is just for removing those zeros from the whole date
string. Bottomline is If we dont want those zeros in DD, MM, YYYY, just add "FM" in the start.
Thanks for the info once again.