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

Announcements
Posting on Qlik Community is temporarily paused for some users. Thank you for patience and we'll update you soon!
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

Date format

Hi,

I am having date format llike 30-11-2016.txt .how can i remove .txt from the date.

Labels (1)
1 Solution

Accepted Solutions
tresB
Champion III
Champion III

Try like:

Purgechar(DateField, '.txt')

Or,

SubField(DateField,'.' ,1)

View solution in original post

3 Replies
tresB
Champion III
Champion III

Try like:

Purgechar(DateField, '.txt')

Or,

SubField(DateField,'.' ,1)

Anil_Babu_Samineni
MVP
MVP

You can use many ways

1) SubField('30-11-2016.txt', '.', 1)

2) Replace('30-11-2016.txt', '.txt', '')

3) Left('30-11-2016.txt', 10)

4) PurgeChar(''30-11-2016.txt', '.txt')

Best Anil, When applicable please mark the correct/appropriate replies as "solution" (you can mark up to 3 "solutions". Please LIKE threads if the provided solution is helpful
Anonymous
Not applicable
Author

Thanks for your Immediate rly.