Skip to main content
Announcements
Qlik Connect 2024! Seize endless possibilities! LEARN MORE
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Trim, PurgeChar problem ?

hi;

in my list of birthday fields looks like ( 01/01/1980 12:00:00 AM ) but i just want to see ( 01/01/1980 ) because i have to use this format.

i use purgechar and trim in edit script before reload but it does not work. some points i did not catch ?

Thanks in advence

5 Replies
Not applicable
Author

It looks like this is a TIMESTAMP field and not a string, so try Date(YourDateFieldName,'DD/MM/YYYY') instead of purge/trim.

Not applicable
Author

Hi,

try this in your script .it should work.

load left(01/01/1980 12:00:00 AM,index(01/01/1980 12:00:00 AM,' ')) as column;

thanks

Not applicable
Author

Hi;

Thanks for responses...

I try both scripts but it does not work immediately. Default field in the database is BIRTH_DATE and format looks like "01/01/1980 12:00:00 AM" I'd like DD/MM/YYYY(e.g. 01/01/1980) and i dont want to see timestamp. Those scripts give me numbers with unknown format (e.g. 0040-01-01)

I am so confused about this problem...

I am just waiting your ideas.

Thanks

kji
Employee
Employee

If its just a display issue you should load the field as normal, and then set the display number format to use "Date", this can be done in document properties, number tab, or the number tab of the object displaying the field.

Not applicable
Author

Thank you...

It works troubleless