The JavaScript date getUTCDate() method is used to get the integer value between 1 and 31 that represents the day for the particular date based on the universal time.
Syntax:
dateObj.getUTCDate()
Return:
An integer value between 1 and 31.
Example:
<!DOCTYPE html> <html> <body> <script> var today = new Date(); document.writeln(today.getUTCDate()); </script> </body> </html>