Skip to main content
Announcements
July 15, NEW Customer Portal: Initial launch will improve how you submit Support Cases. IMPORTANT DETAILS
cancel
Showing results for 
Search instead for 
Did you mean: 
Brownie
Contributor III
Contributor III

How to separate Date ?

Brownie_0-1677835540908.png

 

Labels (3)
4 Replies
MartW
Partner - Specialist
Partner - Specialist

can you check how this field is stored in the datamodel?

because Qlik stores dates. time and datetime as numeric values. you might see dd-mm-yyyy but Qlik stores the that as 123456 within the datamodel viewer you can check if it states that it is a timestamp or date then you can use the date function in Qlik to convert this to a more readable timestamp

MartW_0-1677839650459.png

 

anat
Master
Master

load subfield(dt,' ',3)&'-'&subfield(dt,' ',2)&'-'&subfield(dt,' ',6),dt;
load * inline [
dt
Wed Feb 08 08:43:00 UTC 2023

];

Channa
Specialist III
Specialist III

try

trim(date(trim(yourdatecolumn))) qlik should identify this as date

Channa
MarcoWedel

Hi,

one solution might be:

MarcoWedel_0-1678023729314.png

table1:
LOAD *,
     DayName(FollowedOn) as FollowedOnDate,
     Time(Frac(FollowedOn)) as FollowedOnTime;
LOAD Timestamp(Timestamp#(Replace(Mid([Followed On],5),'UTC',''),'MMM DD hh:mm:ss  YYYY'),'MM/DD/YYYY hh:mm:ss') as FollowedOn
Inline [
Followed On
Tue Feb 07 08:43:00 UTC 2023
Wed Feb 08 09:44:00 UTC 2023
Thu Feb 09 10:45:00 UTC 2023
Fri Feb 10 11:46:00 UTC 2023
Sat Feb 11 12:47:00 UTC 2023
Sun Feb 12 13:48:00 UTC 2023
];