IBM Watson™ Ideas

Welcome to the IBM Watson™ Ideas Portal


We welcome and appreciate your feedback on IBM Watson™ Products to help make them even better than they are today!


If you are looking for troubleshooting help or wondering how to use our products and services, please check the IBM Watson™ documentation. Please do not use the Ideas Portal for reporting bugs - we ask that you report bugs or issues with the product by contacting IBM support.


Before you submit an idea, please perform a search first as a similar idea may have already been reported in the portal.


If a related idea is not yet listed, please create a new idea and include with it a description which includes expected behavior as well as why having this feature would improve the service and how it would address your use case.

Implement @sys-date and @sys-time format templates

Format templates could be useful to print date and time in the customers familiar format.

There is already the option to set a timezone in context.

"context": {
  "timezone": "Europe/Berlin"
}
 
Just define templates for every timezone. For example if the timezone is "Europe/Berlin" then return sys-date in format "dd.MM.yyyy". Yes it is possible to use reformatTimeDate, but what if the customer enters a dynamic amount of dates. You can't reformat @sys-date.values. Maybe adding the method reformatDateTime on @sys-date.values could be the solution.

If developers don't want the format based on the timezone, they could get the option to add a template in context like this:

"context": {
  "timezone": "Europe/Berlin",
  "sys-date-template": "dd.MM.yyyy",
  "sys-time-template: "hh:mm:ss"
}
 
@sys-date and @sys-time will then use the template defined in context.
This gives developers the option to add a format, that is used in the customers application.
  • Robert
  • Sep 6 2019
  • Needs review
Why is it useful?
Who would benefit from this IDEA? Every Watson Assistant Developer and Customer
How should it work?
Idea Priority
Priority Justification
Customer Name
Submitting Organization
Submitter Tags
  • Attach files