The toDateString() method of date object returns date part as string. Use it for example to date part as string.
Syntax
This will produce following result