Source Code:
Result:
Syntax for FormatDateTime: FormatDateTime(Date,namedformat).
Edit the code above and click "Submit Code" to see the result.
W3Schools.com
- Try it yourself