Skip to main content
Woohoo! Qlik Community has won “Best in Class Community” in the 2024 Khoros Kudos awards!
Announcements
Nov. 20th, Qlik Insider - Lakehouses: Driving the Future of Data & AI - PICK A SESSION
cancel
Showing results for 
Search instead for 
Did you mean: 
thanhphongle
Creator II
Creator II

changing date in qv

Hello Community,

i have a database with different dates:

Date
14.06.2001
22.08.2003
30.04.2005
09.05.2006

my question is, how can i change all dates to the 1st of a month. see below:

New Date
01.06.2001
01.08.2003
01.04.2005
01.05.2006

maybe with a if function. but i dont really know how to write it in qv

if(date(DD>1,MM,YYYY), then date(DD=1,MM,YYYY) something like this

1 Solution

Accepted Solutions
swuehl
MVP
MVP

Look into Monthstart() QV date function:

LOAD Date,

          DayName(Monthstart(Date)) as NewDate,

     ...

FROM ...;

View solution in original post

1 Reply
swuehl
MVP
MVP

Look into Monthstart() QV date function:

LOAD Date,

          DayName(Monthstart(Date)) as NewDate,

     ...

FROM ...;