Forum Post: RE: Get current user's date format for a Date Field

  • Thread starter Thread starter Orchid Corpin
  • Start date Start date
Status
Not open for further replies.
O

Orchid Corpin

Guest
Hi IranK, You can use rbv_api.formatDate (for backkend) or rbf_formatDate (for front end). e.g. var currentDate = new Date("new Date(rbv_api.getCurrentDate())"); currentDate = rbv_api.formatDate(currentDate, "yyyy/MM/dd"); return currentDate; I tried parsing the {!CURR_USER#dateFormat} to date value but seems to be not a valid date format so in the sample I get the current date in the Helper then use the rbv_api.formatDate Hope this may help. Regards, Orchid

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