Feedback for subjective question
Question 1: Create an instance of date and write the methods to get date and minutes?
getHours() Returns the current number of hours into the day: (0-23)
getMinutes() Returns the current number of minutes into the hour: (0-59)
getSeconds() Returns the current number of seconds into the minute: (0-59)
getDay() Returns the number of days into the week: (0-6)
getMonth() Returns the number of months into the year: (0-11)
getYear() Returns the number of years into the century: (0-99)
curdate.getDate() Here curdate is an instant
getHours() Returns the current number of hours into the day: (0-23)
getMinutes() Returns the current number of minutes into the hour: (0-59)
getSeconds() Returns the current number of seconds into the minute: (0-59)
getDay() Returns the number of days into the week: (0-6)
getMonth() Returns the number of months into the year: (0-11)
getYear() Returns the number of years into the century: (0-99)
curdate.getDate() Here curdate is an instant
Current Answer:
Be the first to post an answer to earn 100CR.