Fetching month from Date Time

I'm trying to retrieve just the month from a value I have saved as a DateTime data type. 

  Discussion posts and replies are publicly visible

Parents
  • You can use the following as per your requirement:-

    text(ri!date,"m")                            /*Return month in numeric format that can be either one or two digit. (Eg. "7")*/ 

    text(ri!date,"mm")                        /*Return month in numeric format that would two digit. (Eg. "07")*/

    text(ri!date,"mmm")                    /*Return month in text format that can would be 3 letter text. (Eg." Jan")*/

    text(ri!date,"mmmm")                /*Return month in text format that can would be name of month. (Eg. "January")*/

Reply
  • You can use the following as per your requirement:-

    text(ri!date,"m")                            /*Return month in numeric format that can be either one or two digit. (Eg. "7")*/ 

    text(ri!date,"mm")                        /*Return month in numeric format that would two digit. (Eg. "07")*/

    text(ri!date,"mmm")                    /*Return month in text format that can would be 3 letter text. (Eg." Jan")*/

    text(ri!date,"mmmm")                /*Return month in text format that can would be name of month. (Eg. "January")*/

Children
No Data