
Creator II
2020-10-13
08:28 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
How to extract Month and Monthyear from Date field?
Hi,
Can any one please help me to extract Month and Month year from below Date field. Here some dates are showing left side and some are showing at right side. Due to this Month() is not working.
Thanks in advance
1,579 Views
2 Replies

MVP
2020-10-13
09:03 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
@mahitham you can test :
Month(MakeDate('20'&right(subfield(Date,'/',3),2),subfield(Date,'/',1),subfield(Date,'/',2))) as NewDateFieldMonth
or
Month(Date(
Floor(
Alt(
Num(Date),
Num(Date#(Date, 'MM/DD/YYYY')),
Num(Date#(Date, 'MM/DD/YY'))
)), 'MM/DD/YYYY')) as NewDateFieldMonth
Regards,
Taoufiq ZARRA
"Please LIKE posts and "Accept as Solution" if the provided solution is helpful "
(you can mark up to 3 "solutions") 😉
Taoufiq ZARRA
"Please LIKE posts and "Accept as Solution" if the provided solution is helpful "
(you can mark up to 3 "solutions") 😉
1,560 Views

MVP
2020-10-13
09:11 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
i have created one blog for multiple date formats. please have a look.
https://community.qlik.com/t5/Qlik-Sense-Documents/Multiple-Dates-Using-Alt/ta-p/1493744
or try this
table1:
date(Date#(Datefield),'MM/dd/yyyy') as ConverttoNumber;
date(alt(Datefield),'MM/dd/yyyy') as Newdate;
https://ezdatamunch.com/use-simple-date-functions-qlikview-qliksense/
1,555 Views
