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

Announcements
Want to see what's currently in public preview? We've pulled it all together in one place. Check it out here
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Text to date

Hi,

My dataset has dates noted as follows:

03.06.2013

However, it are no dates; it is text, so I cannot do calculations with it. How do I change this to a real date, or a number (in this example to 41428), so I can do calculations with the dates?

Thanks.

Labels (1)
1 Solution

Accepted Solutions
Nicole-Smith
MVP
MVP

If day is first then month:

date#(YourDateField, 'DD.MM.YYYY')

If month is first then day:

date#(YourDateField, 'MM.DD.YYYY')

View solution in original post

2 Replies
Nicole-Smith
MVP
MVP

If day is first then month:

date#(YourDateField, 'DD.MM.YYYY')

If month is first then day:

date#(YourDateField, 'MM.DD.YYYY')

Not applicable
Author

hi Dam

try this :

date(date#(03.06.2013,'DD.MM.YYYY'))