Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Convert DateTime to Date

How can I convert DateTime (Field Order Date) into  Date (DD/MM/YYYY) with a script ?

1 Solution

Accepted Solutions
krishna_2644
Specialist III
Specialist III

load date(orderdate,'M/D/YYYY') as OrderDate

from xyz.qvw;

View solution in original post

5 Replies
krishna_2644
Specialist III
Specialist III

load date(orderdate,'M/D/YYYY') as OrderDate

from xyz.qvw;

MarcoWedel

‌DayName(OrderDate)

or

Date(Floor(OrderDate))

or if your default DateFormat is different from the required one:

Date(Floor(OrderDate),'DD/MM/YYYY')

you maybe can skip the floor function as your sample data always has 00:00:00 as time.

regards

Marco

Not applicable
Author

Thx

Not applicable
Author

Thank you

MarcoWedel

‌you're welcome

regards

Marco