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

Datefield not recognized as Date

Hi Folks,

i am facing this issue: 

my Field does look like:  Martin Smith / 01.02.16

i divided this filed by using of Function: Subfield () into 2 Fields: Employee = Martin Smith and Datafield= 01.02.2016.

But if i try on the base of Field: Datafield to make the Year() and Month (), i recieve the empty fields. The Datafiled will not recognized as Datafield.

 

Does anybody have any Suggestion or idea how to resolve this issue?

 

Thanks a lot

Beck

Labels (1)
1 Solution

Accepted Solutions
sunny_talwar

Try this

Date#(Trim(SubField(FieldName, '/', 2)), 'DD.MM.YY') as DateField,
Month(Date#(Trim(SubField(FieldName, '/', 2)), 'DD.MM.YY')) as Month,
Year(Date#(Trim(SubField(FieldName, '/', 2)), 'DD.MM.YY')) as Year,

View solution in original post

3 Replies
pradosh_thakur
Master II
Master II

DATE(date#(Datafield,'DD.MM.YY'))
Learning never stops.
sunny_talwar

Try this

Date#(Trim(SubField(FieldName, '/', 2)), 'DD.MM.YY') as DateField,
Month(Date#(Trim(SubField(FieldName, '/', 2)), 'DD.MM.YY')) as Month,
Year(Date#(Trim(SubField(FieldName, '/', 2)), 'DD.MM.YY')) as Year,
beck_bakytbek
Master
Master
Author

Sunny thanks a lot for your help and time