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: 
smilingjohn
Specialist
Specialist

Date

I have the date format like this

8/9/2015  12:00:00AM

I want to have only Date like 8/9/2015

How to achieve this at the sript level.

PLease find the attachment below ,with sample Excel file

Thanks in advance

11 Replies
Anonymous
Not applicable

Date(Date#((DateField, 8), 'M/D/YYYY'), 'M/D/YYYY') as Date in this expression Datefield later to give the your format than it is working

HirisH_V7
Master
Master

Hi,

Like this ways,

Date(Floor(OrderDate)) as OrderDate,

  OrderDate,

  Subfield(OrderDate,' ',1) as Date,

  Date(Timestamp(OrderDate,'M/D/YYYY  hh:mm:ssTT'),'M/D/YYYY') as Time,

  Trim(Mid(OrderDate,1,10)) as Datee

Here your calendar is working fine,

Calendar.PNG

PFA,

HTH,

Hirish

HirisH
“Aspire to Inspire before we Expire!”