This value is derived from the operating system of the computer on which the instance of SQL Server is running. The date.getDate() is an inbuilt function in JavaScript which is used to fetch the date of a month from a given Date object. 在本例中,我们定义了一个带有具体日期的变量,并输出变量中月份的天: JavaScript Demo: Date.getDate () const birthday = new Date ('August 19, 1975 23:15:30'); const date1 = birthday.getDate (); console.log (date1); // expected output: 19. 输出: 例子 2. APPLIES TO: SQL Server Azure SQL Database Azure Synapse Analytics (SQL DW) Parallel Data Warehouse Returns the current database system timestamp as a datetime value without the database time zone offset. GETDATE (Transact-SQL) 09/07/2018; 2 minutes to read +3; In this article. The getDate () method returns the day of the month for the specified date according to local time. Return the day of the month from a specific date: var d = new Date ("July 21, 1983 01:15:00"); var n = d.getDate(); Try it Yourself ». Parameter: This function does not takes any parameter. Syntax: DateObj.getDate() In the above syntax, DateObj is a valid Date object created using Date() conctructor from which we want to fetch date. If the date was October 31, for example, and the month is set to June, then the new date will be treated as if it were on July 1, because June has only 30 days. This Date object is modified so that it represents a point in time within the specified month, with the year, date, hour, minute, and second the same as before, as interpreted in the local time zone.