Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Date Format issue

Hi

My excel sheet date field have different formates of dates are available..so i need to make a proper format.How can achieve  this.

1 Solution

Accepted Solutions
marcus_malinow
Partner - Specialist III
Partner - Specialist III

16 Replies
sasiparupudi1
Master III
Master III

post your data file

qlikviewwizard
Master II
Master II

Hi Karthik,

Please attach the excel file or your sample application. Thank you.

Anonymous
Not applicable
Author

as first tip, check "Date#" in Qlikview help

this function may help you

Not applicable
Author

Datesales
1/2/2009400dd-mm-yyyy
2/13/20095000mm-dd-yyyy
2009/15/23000yyyy-dd-mm
3/17/20091mm-dd-yyyy

Required  format "DD-MM-YYYY"

sunny_talwar

Try this may be:

Date(Alt(Date#(Date, 'DD-MM-YYYY'), Date#(Date, 'MM-DD-YYYY'), Date#(Date, 'YYYY-DD-MM')), 'DD-MM-YYYY')

sunny_talwar

Only problem would be when you have a date like 01/02/2015. Would you want QlikView to interpret this like Jan 2nd 2015 or Feb 1st 2015?

vishsaggi
Champion III
Champion III

Hi Karthik,

Try this:

TableName:

LOAD Date(Date#(Date, 'DD-MM-YYYY'), 'DD-MM-YYYY')  As Date,

         Sales

FROM <Filename>.xlsx;

V.

marcus_malinow
Partner - Specialist III
Partner - Specialist III

A combination of alt() and date#() should work.

Alt (date#(Date, 'MM/DD/YYYY'),

    date#(Date, 'YYYY/DD/MM'),

    date#(Date, 'MM/DD/YYYY)

    )

You can add additional date# functions in here to match any additional date formats you have in your source data.

Marcus

Anonymous
Not applicable
Author

hi,

First Use interpretation function and use formatting function to make uniform date format.

still an issue.

Please post sample data and script

Regards

Neetha