" /> Date formats on Composer - Genesys CTI User Forum

Author Topic: Date formats on Composer  (Read 3201 times)

Offline cavagnaro

  • Administrator
  • Hero Member
  • *****
  • Posts: 7641
  • Karma: 56330
Date formats on Composer
« on: September 18, 2014, 02:49:31 AM »
Advertisement
Hi guys
A curiosity, on Composer when we use a Prompt block we can use the Interpret as -> Date. On this, a Format drop down is enabled. There we have 2 options:
Short and Long.
According to the JS file we can define custom formats, but can't figure out or how to define them manually or create new ones on Composer.
For example, the Short one puts a format " f.SPEAK_MONTH|f.SPEAK_YEAR" on the VXML file, but what if I want a f.SPEAK_DAY|f.SPEAK_MONTH only?

Any clue?

I know I could build customprompts functions, but...why reinvent the powder??

Offline gabybanu11

  • Newbie
  • *
  • Posts: 2
  • Karma: 0
Re: Date formats on Composer
« Reply #1 on: February 08, 2017, 11:46:21 AM »
Your project has a javascript file under Resources/Prompts/[locale] with [locale] filename (e.g Resources/Prompts/en-US/en-US.js) where you can find and edit the function datePrompts(value, format).

Offline cavagnaro

  • Administrator
  • Hero Member
  • *****
  • Posts: 7641
  • Karma: 56330
Re: Date formats on Composer
« Reply #2 on: February 08, 2017, 11:56:28 AM »
Hi, well kinda very old post but amazingly never found the answer
You are right, we can edit the JS but then on composer side, how I should indicate use format X or format Y

Enviado de meu E6633 usando Tapatalk