How can I display my dates in a format that is currently not supported by BI/Query (i.e. YYYY-MM)?
Answer – First, you will need to create a calculated attribute with the data type set to char(n) … I used char(8) for the following example but you could use char(7). The syntax for this attribute would be: (ltrim(rtrim(str((datepart (Year, Customer.Starttime ))))+’-‘+ltrim(rtrim(str((datepart (Month, Customer.Starttime ))))))) Where Customer.Starttime would be your date attribute name. This will display the data in the format YYYY-MM. The above syntax can be modified for most date formats and it should also be noted that the functions Year and Month must be supported by your dbms.
Related Questions
- I would like to learn chess and display large pictures in proprietary format not supported by SuperMemo. How can I do it?
- Can the user defined facts be used to support GEDCOM defined facts that are not currently supported in FO?
- How can I display my dates in a format that is currently not supported by BI/Query (i.e. YYYY-MM)?