Skip to content
Advertisement

How can i take the element name inside the Html

How can i able to find the date format in UTC from the html element 2018-06-14T03:00:00.000Z. I am new in php so i don’t know how to grab it.

JavaScript

Advertisement

Answer

You might do it using find for getting the div with classname fi-mu__info__datetime and then getting the data-utcdate:

JavaScript

If you only want the first one you could use:

JavaScript
User contributions licensed under: CC BY-SA
9 People found this is helpful
Advertisement