# Enum instance for Month is misleading

**URL:** <https://forum.canton.network/t/enum-instance-for-month-is-misleading/2098>\
**Category:** App Development\
**Tags:** daml-sdk\
**Created:** [February 16, 2021, 8:41pm UTC](https://forum.canton.network/t/enum-instance-for-month-is-misleading/2098 "2021-02-16T20:41:24Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Alexander\_Bernauer](https://yyz2.discourse-cdn.com/flex034/user_avatar/forum.canton.network/alexander_bernauer/32/1703_2.png) [@Alexander\_Bernauer](https://forum.canton.network/u/Alexander_Bernauer)\
**Post date:** [February 16, 2021, 8:41pm UTC](https://forum.canton.network/t/enum-instance-for-month-is-misleading/2098/1 "2021-02-16T20:41:24Z")

</div>

Hi,

unless I am mistaken, `toEnum 1 :: Month` is not `Jan`, but `Feb`.

Needless to say I fell into this trap. Now, I am not sure if it is too late to change this with a custom `instance Enum Month`. If it is, I propose a note about this in the documentation.

Regards,  
Alex

---

<div class="post-metadata">

**Author:** ![cocreature](https://yyz2.discourse-cdn.com/flex034/user_avatar/forum.canton.network/cocreature/32/36_2.png) [@cocreature](https://forum.canton.network/u/cocreature)\
**Post date:** [February 16, 2021, 8:53pm UTC](https://forum.canton.network/t/enum-instance-for-month-is-misleading/2098/2 "2021-02-16T20:53:17Z")

</div>

Hi @Alexander_Bernauer, I recommend viewing `Enum` not as a way to convert types from and to `Int`s but instead to view it purely as a way to enumerate values with the integer conversion being an implementation detail. At that point, it doesn’t matter whether `toEnum` returns 0, 23 or 42. If you need a specific integer conversion, you are better off implementing your own.

That said, I fully agree, that are docs are lacking here and we’ll work on clarifying this.
