OiO.lk Community platform!

Oio.lk is an excellent forum for developers, providing a wide range of resources, discussions, and support for those in the developer community. Join oio.lk today to connect with like-minded professionals, share insights, and stay updated on the latest trends and technologies in the development field.
  You need to log in or register to access the solved answers to this problem.
  • You have reached the maximum number of guest views allowed
  • Please register below to remove this limitation

TypeError: dayjs.utc is not a function

  • Thread starter Thread starter Srikanth
  • Start date Start date
S

Srikanth

Guest
I am getting this error

dayjs.utc is not a function

Here is my code

Code:
const dayjs = require('dayjs')

console.log('utc time',dayjs.utc())

<p>I am getting this error</p>
<blockquote>
<p>dayjs.utc is not a function</p>
</blockquote>
<p>Here is my code</p>
<pre class="lang-js prettyprint-override"><code>const dayjs = require('dayjs')

console.log('utc time',dayjs.utc())
</code></pre>
 

Latest posts

Top