Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Join us in Bucharest on Sept 18th for Qlik's AI Reality Tour! Register Now
cancel
Showing results for 
Search instead for 
Did you mean: 
SatyaPaleti
Creator III
Creator III

Date format

Hi Friends,

I am having a field called Date it is in

10/29/2015 12:45:22 AM format

I Want to show in 29-Oct-2015 format.

What is the exact function I need to use here

Thank you,

Satya Paleti

13 Replies
handry_orozco
Partner - Contributor III
Partner - Contributor III

Hi Friend

Try,

Table_tmp:

LOAD

     Day(date) AS Day,

     Month(MonthName(date)) AS Month,

     Year(date) AS Year

FROM Table1.Qvd;

NoConcatenate

Table:

LOAD Day&'-'&Month&'-'&Year AS Date

Resident Table_tmp;
Drop Table Table_tmp;

bye

Not applicable

Hi

use

=Date(DateFiled,'DD_MMM-YYYY')

settu_periasamy
Master III
Master III

Try like

Date (Date#(YourDateField,'MM/DD/YYYY HH:MM:SS TT'),'DD-MMM-YYYY') as Date

SatyaPaleti
Creator III
Creator III
Author

Hi Settu,

Thank you for your reply but it's not working here

Thank you,]

Satya Paleti

HirisH_V7
Master
Master

Hi,

Date:

Load*,

TimeStamp(

  Alt(

      TimeStamp#(Date,'MM/DD/YYYY hh:mm:ss')

),'MM/DD/YYYY'

  ) as New_Date_Value

;

LOAD * INLINE [

Date

10/29/2015 12:45:22

10/30/2015 12:45:22

];

Please check this .May be helpful

Thanks,

hirish

HirisH
Chanty4u
MVP
MVP

hi,

=Timestamp(Timestamp#('9/13/2015 2:40:49 AM', 'MM/DD/YYYY hh:mm:ss TT'), 'DD-MMM-YYYY') as date

hope this helps u

Thanks

Suresh

ElizaF
Creator II
Creator II

Hi,

Possibly because you did not set the data format at the beginning of the script.

Please, set variable:

SET DateFormat='MM/DD/YYYY hh:mm:ss[.fff] TT';

and after try the function provided by settu_periasamy.

MK_QSL
MVP
MVP

At Front End

=Date(Floor(TimeStamp#('10/29/2015 12:45:22 AM','MM/DD/YYYY hh:mm:ss TT')),'DD-MMM-YYYY')

or

=Date(Floor(TimeStamp#(YourTimeStampField,'MM/DD/YYYY hh:mm:ss TT')),'DD-MMM-YYYY')

At Back End (in script)

Date(Floor(TimeStamp#(YourTimeStampField,'MM/DD/YYYY hh:mm:ss TT')),'DD-MMM-YYYY') as DateField