---
title: "The JavaScript function getMonth() in Open Foris Arena does not exist?"
url: "https://openforis.support/questions/4210/the-javascript-function-getmonth-in-open-foris-arena-does-not-exist"
tags: ["arena"]
status: "accepted"
score: 0
answer_count: 1
asked: "2025-03-29T18:22:18"
last_activity: "2025-03-29T20:17:51"
source: "Open Foris Support - Q&A Forum"
license: "Copyright Open Foris, 2026. Some rights reserved under creative commons license."
---

# The JavaScript function getMonth() in Open Foris Arena does not exist?

Asked by marvgonzalezv on 2025-03-29

I tried to get the month with getMonth() but the function inside Open Foris Arena does not exist.


## Accepted answer (score 1, by Lauri (OF) on 2025-03-29)

Link: https://openforis.support/questions/4210/the-javascript-function-getmonth-in-open-foris-arena-does-not-exist/4212

You can get the month our from a date attribute as follows: *date_attribute_name.month*

This is documented in the Arena User Manual chapter 12 (Examples of expressions in Open Foris Arena). There is the link to [this text][1]. 


  [1]: https://docs.google.com/document/d/1FsD1kARO7wtY-ZYXR84TFTDn2JhRlKsVDJdqPvEXkpk/view
