Discussion posts and replies are publicly visible
Which documentation link are you browsing? The todate() function is working correctly. However, you need to change the format of the output where you need to customise the order of date/month/year and also change from number to text, then text() is the correct function you will need to use.
Kindly refer the image once and by using text(datevalue("12/12/21"),"mmmm dd, yyyy") i am able to get my output but what they have told for todate function in the image i thought it was sufficient for my use