Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Join us to spark ideas for how to put the latest capabilities into action. Register here!
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

easy and tricky?


i have a period field which contains

period:

41,938

52,656

i want convert it to date format like MM/DD/YYYY?

date(period,'MM/DD/YYYY) AS NEW   its working but showing in front end like

for example :

01/01/2015 12:00:00     here i dont want see the time here?

and i dont want to remove  through number tab  option ? because every time i have chnage when i pull into front end ?

1 Solution

Accepted Solutions
its_anandrjs
Champion III
Champion III

Hi,

Try with convert to NUM and then in date format.

Date( Num(period), 'MM/DD/YYYY') as NEW

Regards

Anand

View solution in original post

9 Replies
its_anandrjs
Champion III
Champion III

Hi,

Try with convert to NUM and then in date format.

Date( Num(period), 'MM/DD/YYYY') as NEW

Regards

Anand

crusader_
Partner - Specialist
Partner - Specialist

Hi,

Try this expression:

date(floor(period),'MM/DD/YYYY') as NEW

hope this helps

Regards,

Andrei Kaliahin

PrashantSangle

Hi,

Use Floor()

Try like

Date(floor(period),'MM/DD/YYYY') AS NEW

Regards

Great dreamer's dreams never fulfilled, they are always transcended.
Please appreciate our Qlik community members by giving Kudos for sharing their time for your query. If your query is answered, please mark the topic as resolved 🙂
Anonymous
Not applicable
Author

DID NOT WORKED ALL

engishfaque
Specialist III
Specialist III

Dear Commonqlik,

Try this one,

LOAD *, Date(num(period), 'DD/MM/YYYY') as newPeriod Inline [

period

41,938

52,656

];

or

Create a text object and use, if output is -1 it means date is coming in text form, then apply proper date functions.

If 0 or 1 is coming it means date is coming right from data source something is going wrong in script/expression level.

=IsText(newPeriod)

Kind regards,

Ishfaque Ahmed

Frank_Hartmann
Master II
Master II

left(date(period,'MM/DD/YYYY),10) AS NEW  

andrespa
Specialist
Specialist

Hi,

Try this:

date(left(period,'MM/DD/YYYY'),10) AS NEW


Hope it helps.

Andrés

Anonymous
Not applicable
Author

Hi,

Try:

Data:

LOAD Date(num(period), 'MM/DD/YYYY') as period;
LOAD Purgechar( period, ',' ) AS period
from Table;

Gabriel
Partner - Specialist III
Partner - Specialist III

Hi,

Please read this blog (HIC has few blogs on Date)

http://community.qlik.com/blogs/qlikviewdesignblog/2012/12/18/number-format-codes