# Month variable

**URL:** <https://forum.dimagi.com/t/month-variable/2162>\
**Category:** Users\
**Created:** [April 15, 2015, 7:22pm UTC](https://forum.dimagi.com/t/month-variable/2162 "2015-04-15T19:22:05Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Sarah\_Mollenkopf](https://dimagi.b-cdn.net/letter_avatar_proxy/v4/letter/s/b2d939/32.png) [@Sarah\_Mollenkopf](https://forum.dimagi.com/u/Sarah_Mollenkopf)\
**Post date:** [April 15, 2015, 7:22pm UTC](https://forum.dimagi.com/t/month-variable/2162/1 "2015-04-15T19:22:05Z")

</div>

Is it possible to make a variable that is equal only to the month/year or  
individually the month and the year? I work with a health structure that  
reports all their data on a monthly basis so it would be helpful to have  
that/those variable(s) so that they can stratify by it in the Excel  
dashboard.

Thanks,  
Sarah

---

<div class="post-metadata">

**Author:** ![czue](https://dimagi.b-cdn.net/user_avatar/forum.dimagi.com/czue/32/493_2.png) [@czue](https://forum.dimagi.com/u/czue)\
**Post date:** [April 15, 2015, 8:19pm UTC](https://forum.dimagi.com/t/month-variable/2162/2 "2015-04-15T20:19:03Z")

</div>

You should be able to add hidden values to your form and use the format-date  
function  
[https://confluence.dimagi.com/display/commcarepublic/CommCare+Functions#CommCareFunctions-format-date](https://confluence.dimagi.com/display/commcarepublic/CommCare+Functions#CommCareFunctions-format-date)  
to set them.

> **···**
>
> On Wed, Apr 15, 2015 at 3:22 PM, Sarah Mollenkopf wrote:
> 
> > Is it possible to make a variable that is equal only to the month/year or  
> > individually the month and the year? I work with a health structure that  
> > reports all their data on a monthly basis so it would be helpful to have  
> > that/those variable(s) so that they can stratify by it in the Excel  
> > dashboard.
> > 
> > Thanks,  
> > Sarah
> > 
> > --  
> > You received this message because you are subscribed to the Google Groups  
> > "commcare-users" group.  
> > To unsubscribe from this group and stop receiving emails from it, send an  
> > email to [commcare-users+unsubscribe@googlegroups.com](mailto:commcare-users+unsubscribe@googlegroups.com).  
> > For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).
