JavaScript getYear Function

JavaScript getYear Function 2

JavaScript getYear function is one of the Date Function, which returns the current year of a given date minus 1900. The syntax of the JavaScript getYear function is: Date.getYear() JavaScript getYear Function Example We use the getYear function to return the year (year – 1900) in a current date and time. <!DOCTYPE html> <html> <head> <title> JavaScript Get … Read more