Do you know you can earn heaps of $$ by answering questions on kodlogs, for more info contact us through feedback link at footer? We are Australian based web site and pay you for answering questions

  • Register
Welcome to Kodlogs Q&A, where you can ask programming questions and receive answers from other members of the community. For programmers, by programmers Kodlogs is an open community for anyone that does coding. We help you get answers to your toughest coding questions, share knowledge with your coworkers in private, and find your next IT dream job.
0 votes
6 views

Why i am getting this error: date.getDate is not a function?

Javascript date.getDate is not a function

by (930 points)  

1 Answer

0 votes

Remedy for javascript getDate is not a function issues:

Syntax:

DateObj.getDate()

This is inbuilt function to get the date of a month from provided Date.

To use this function/method,you need an instance of the class Date .

Create instance of Class Date, to use this method. It could be used only with Date Object

else it will throw error.

var getDate = new Date();

getDate .getTime();

by (930 points)  
edited by
...