cancel
Showing results for 
Search instead for 
Did you mean: 

Head's Up! These forums are read-only. All users and content have migrated. Please join us at community.neo4j.com.

Desktop: Unknown function 'apoc.date.format'

I'm new to Neo4j, querying the Desktop localhost from a JavaScript test file.

I have a date field and the following query works:
MATCH (n) RETURN n.due_date

But I want to format it in UTC format before returning. I saw some example of date format in this forum and tried the following query:
MATCH (n) RETURN apoc.date.format(n.due_date, 'ms', 'MMM d yyyy', 'PST')

But this gives the error Unknown function 'apoc.date.format' in browser console. How can I use the apoc functions in the desktop version?

1 ACCEPTED SOLUTION

Hello @kanade.sanjay and welcome to the Neo4j community

To use APOC functions, you must install APOC plugin On Neo4j Desktop, there is a Plugins part at the bottom of your Project, you must install APOC in this part. Then you click on manage your database and you should see a Plugins tab and you should be able to install APOC

This is a cool article to help you: documentation

Regards,
Cobra

View solution in original post

4 REPLIES 4

Hello @kanade.sanjay and welcome to the Neo4j community

To use APOC functions, you must install APOC plugin On Neo4j Desktop, there is a Plugins part at the bottom of your Project, you must install APOC in this part. Then you click on manage your database and you should see a Plugins tab and you should be able to install APOC

This is a cool article to help you: documentation

Regards,
Cobra

Thanks. Installing the plugin fixed the problem.

I'm happy to hear that

Tarik
Node

deleted