Skip to main content
Announcements
Qlik Connect 2024! Seize endless possibilities! LEARN MORE
cancel
Showing results for 
Search instead for 
Did you mean: 
vinod2086
Creator II
Creator II

Converting timestamp to month and year

Hi All,

i have a Created date which is coming from source system.

 

NewDate
01-04-2018 00:00
01-04-2018 00:01
01-04-2018 00:02
01-04-2018 00:03
01-04-2018 00:04
04-04-2018 20:44
04-04-2018 20:45
07-04-2018 22:38
07-04-2018 22:39

here i would like to convert newdate into Year and month.(2018/01--)

Please help me

3 Replies
sunny_talwar

May be this

Date(MonthStart(NewDate), 'YYYY/MM') as YearMonth

or

Date(MonthStart(Date#(NewDate, 'DD-MM-YYYY hh:mm')), 'YYYY/MM') as YearMonth

Thiago_Justen_

Another tip:

MonthName(Date#(NewDate))

Thiago Justen Teixeira Gonçalves
Farol BI
WhatsApp: 24 98152-1675
Skype: justen.thiago
renuka_sasikumar
Creator III
Creator III

The Second one is working for me.

Date(MonthStart(Date#(NewDate, 'DD-MM-YYYY hh:mm')), 'YYYY/MM') as YearMonth

Thank You.