Forum Post: RE: #MONTH function not working?

  • Thread starter Thread starter shkumar
  • Start date Start date
Status
Not open for further replies.
S

shkumar

Guest
Hi , I am Not sure if we have an APi which will give you month (number value) directly unlike in javascript . However , you can use rbv_api.formatDate() api and retrieve month ( in number ) , as shown in below example . var d= rbv_api.selectValue("select updatedAt from obj124 where id=?", {!id}); var x = rbv_api.formatDate(d, "MM"); rbv_api.println("x="+x); output :- 04 Hope you find this useful . Thanks, Sharavan

Continue reading...
 
Status
Not open for further replies.
Back
Top