Currently there isn't a way to set your own datetime format in a document template. You could file a feature request if you want this. As a workaround I would create a string in the format that you like and use that in your document template.
I guess you should take a look here
Hello,Michel Weststrate your guess is right
Thank you all replies :)