Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 
TomBond77
Creator III
Creator III

convert DD.MM.YYYY to YYYY/MM/DD

Hi experts

need to convert posting date to YYYY/MM/DD. But the leading '0' of '0PSTNG_DATE) seems to be a problem. How shouldI solve it?

Date(Date#(0PSTNG_DATE, 'DD.MM.YYYY'),'YYYY/MM/DD') as [Invoice Date],

 

Many thanks

Tom

Labels (1)
1 Solution

Accepted Solutions
rwunderlich
Partner Ambassador/MVP
Partner Ambassador/MVP

Field names that start with numbers must be enclosed in []

Date(Date#([0PSTNG_DATE], 'DD.MM.YYYY'),'YYYY/MM/DD') as [Invoice Date],

-Rob
http://masterssummit.com
http://qlikviewcookbook.com
http://www.easyqlik.com

View solution in original post

2 Replies
dwforest
Specialist II
Specialist II

if the leading 0 of 0PSTING_DATE is not there the date format would be D.M.YYYY

rwunderlich
Partner Ambassador/MVP
Partner Ambassador/MVP

Field names that start with numbers must be enclosed in []

Date(Date#([0PSTNG_DATE], 'DD.MM.YYYY'),'YYYY/MM/DD') as [Invoice Date],

-Rob
http://masterssummit.com
http://qlikviewcookbook.com
http://www.easyqlik.com