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

Announcements
ALERT: QlikView server communication interruptions following Microsoft Windows Domain Controller security updates
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

How to change textfield into datefield?

Hi there,

I'm new here and I have a question on how I can change a textfield:"Open.date" into a datefield from a .txt file?

The textfield looks like "01.12.2009" and is downloaded as a flat file from SAP R6.

Part of the script below;

LOAD

Notification,

[Desc. of Cost],

Costpl.

as Cost,

Open.date

as Notificationdate,



FROM

(

txt, codepage is 1252, embedded labels, delimiter is '|', header is 3 lines, no eof, filters(

Remove

(Col, Pos(Top, 1)),

Remove

(Row, Pos(Top, 2)),

Remove

(Col, Pos(Top, 17))

))



;



can anyone help me with this?

Labels (1)
1 Solution

Accepted Solutions
Not applicable
Author

Hi,

try it with

date#(Open.date,'dd.mm.yyyy')

Alex:)

View solution in original post

3 Replies
Not applicable
Author

Hi,

try it with

date#(Open.date,'dd.mm.yyyy')

Alex:)

Not applicable
Author

markbeenders, i don't know from which database you are pulling information from but if you are using sql server, u just have to convert it there before pulling the information

e.g select convert(date,'01.12.2009') as 'datefield'

Not applicable
Author

Thx alex,

This works fine!

Mark Beenders