change mm/dd/yyyy to dd/mm/yyyy in cube

  • hi all,

    i have a dimension table TimeD that stores different format of date. There's a field Timed_Date which is in datetime format e.g. 20/01/2005. However when i browse data in the cube editor, it'll display as 1/20/2005.

    i've set the Timed_Date to sort by seq, another field in the same table.

    i've set the date format in the regional setting in control panel as dd/mm/yyyy.

    i've tried changing the key data type but it still does not display correctly.

    i've tried changing the key data type to varchar but do not know how to use the convert function to customize it to the format that i want so that it'll display dd/mm/yyyy in report. 

    any other method i can use? it's confusing for the report to display as 1/20/2005.

    thanks lotz

  • Member Name Column is the one should be changed.

  • how should i change it? i've tried putting in the convert function in the member name column or member key column but it says that it's invalid.

    pls help. thanks.

  • convert(varchar, "dbo"."TimeD"."Timed_Date", 103)

    If not work, install service pack.

  • i'm sorie i din mention earlier. my tables are in AS400 database.

  • Not sure if this helps, but you could try using the 'char' function.  It would appear that the default format is US date format.

    Char(X,F)

    Returns the string-representation of a date, time or timestamp value, X. F is the format, (which is optional), and can be: USA, ISO, JUL or any defined system format.

    Steve.

  • hi steve,

    where should i put the function? is it in member name column?

    u mean e.g. char(ztimed.timed_date, USA) ?

    thx.

  • Yes, thats where I would try it.

    I'm not a big AS400 user, so can't guarantee that this will solve your problem.

    Steve.

  • i've tried but it says invalid. any suggestion?

    thx...

Viewing 9 posts - 1 through 8 (of 8 total)

You must be logged in to reply to this topic. Login to reply