Incorrect Syntax for aToken on aDate;  choices are :dmmm, :dMMM, :dmmmm, :dMMMM

Navigation:  Messages > Run-Time Messages > Token Syntax >

Incorrect Syntax for aToken on aDate;  choices are :dmmm, :dMMM, :dmmmm, :dMMMM

Previous pageReturn to chapter overviewNext page

This message arises if you use a regional date formatting token which is not one of the allowed ones.


For example, this message may arise from the following token :




which is trying to build regional formatting of a date in analogy to the [Mmmm] token (ie. first letter only in uppercase). However, Q++Studio does not know the specific rules for which words should or should not be in uppercase, something which depends on the language used and even user preferences, since the regional date formatting tokens recursively contain other tokens resulting in multiple words.


Therefore the only allowed combinations are :


Don't change case at all : [:dmmm] and [:dmmmm].


Change all to uppercase : [:dMMM] and [:dMMMM].


Note that regardless of the case desired, the 'd' is always in lowercase.

Topic 104104 updated on 03-May-2018.
Topic URL: