Comments

3 comments

  • Hamid

    Hi Matias, Add this to the end of your code :

       .format('LL')   

       

     

       moment(@datefield).endOf('month').format('LL')   

     

    if you want a language parameter add this

    .lang('fr')  >>> fr for french

     

     

    0
    Comment actions Permalink
  • Rainer Grabowski

    ... and if you don't want it as a text string but as a date (= displayed like a date field) you can use:

         moment().endOf('month').toDate()

    But then you have to take care about the right time. The function moment takes the Podio server time, so there can be a difference to your timezone. You have to add or subtract hours (depends if your timezone is UTC- or UTC+) like:

         moment().endOf('month').add(5,'hours').toDate()

    Rainer

    0
    Comment actions Permalink
  • Matias Bruhn Klenz

    Thanks for your answers that both give a usable result! 

    0
    Comment actions Permalink

Please sign in to leave a comment.

Powered by Zendesk