Skip to main content
Announcements
Qlik Connect 2025: 3 days of full immersion in data, analytics, and AI. May 13-15 | Orlando, FL: Learn More
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 ...;