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

Announcements
Want to see what's currently in public preview? We've pulled it all together in one place. Check it out here
cancel
Showing results for 
Search instead for 
Did you mean: 
Ankit1988
Contributor III
Contributor III

Proper Date format

Ankit1988_0-1682759538397.png

Hi.

I have dataset in Excel Format which have only two date field one is [Month of coding] and another is [Accessible Month] and value is in the both field is look like the attach above snapshots.

so let me know with the help of [Accessible Month ] how to generate standard Date format. like in DD:MM:YYYY or DD/MM/YYY Format.

 

Thanks  

 

Labels (1)
1 Solution

Accepted Solutions
BrunPierre
Partner - Master II
Partner - Master II

LOAD *,
Date(Date#(Left(MonthOfCoding,3)&Right(MonthOfCoding,2),'MMMYY'),'DD/MM/YYYY') as Date
Inline [
MonthOfCoding
oct'21
nov'21
sept'21
jun'21
];

BrunPierre_0-1682769195703.png

View solution in original post

11 Replies
Chanty4u
MVP
MVP

Hi you can try this 

=Date(Date#(MonthOfCoding, 'MMM''YYYY'), 'DD/MM/YYYY')

 

=Date(Date#(AccebleMonth, 'MMM''YYYY'), 'DD/MM/YYYY')

 

Ankit1988
Contributor III
Contributor III
Author

hi.

try but its showing null value .

its not working

Chanty4u
MVP
MVP

Hi,

i can see  results:

load *,
Date(Date#(MonthOfCoding, 'MMM''YYYY'), 'DD/MM/YYYY') as new;

load * inline [

MonthOfCoding
Oct'2023
];

exit Script;

Chanty4u_0-1682762877974.png

 

 

Ankit1988
Contributor III
Contributor III
Author

Ankit1988_0-1682763076895.png

hi Look My field value is Oct'21/Sept'21/Jul'21 look like that. i try but it showing null value. 

as your result is shown but you try instead of Oct'2023 put this three value Oct'21/Sept'21/Jul'21

BrunPierre
Partner - Master II
Partner - Master II

Slight change to @Chanty4u's suggestion.

Date(Date#(MonthOfCoding, 'MMM''YY'), 'DD/MM/YYYY') as new;

Ankit1988
Contributor III
Contributor III
Author

No its not working showing blank result.

please see value in field [Month of coding] is like 

oct'21

nov'21

sept'21

jun'21

 

I have only one date field in my data set i.e. [Month of coding]

and on the basis of [Month of coding] I want below fields.

Date

Month

Year

Mont Year

Fiscal Year

 

 

 

Rams-
Creator
Creator

Hi,

Here's my result,

load *,
Date(Date#(MonthOfCoding, 'MMM''YYYY'), 'DD/MM/YYYY') as new_MonthOfCoding;

load * inline [

MonthOfCoding
Oct'21
Nov'21
Dec'21
Apr'21
Jun'21
Jul'21
Sep'21

];

Rams_0-1682765237323.png

Hope this helps,

help user find answers ! don't forget to mark  a solution that work for you and click the like button!

BrunPierre
Partner - Master II
Partner - Master II

LOAD *,
Date(Date#(Left(MonthOfCoding,3)&Right(MonthOfCoding,2),'MMMYY'),'DD/MM/YYYY') as Date
Inline [
MonthOfCoding
oct'21
nov'21
sept'21
jun'21
];

BrunPierre_0-1682769195703.png

Ankit1988
Contributor III
Contributor III
Author

its working.

but in place of sept'21 its shown blank. how to resolve that.