Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Hi All,
I have datetime in this format 7/1/2014 0:00. How to retrieve only date from this.
Thanks,
Bibhuti
Try: floor(datetime)
- Marcus
I agree with Marcus, but would add Date() function to show the date
Date(Floor(datetime)) as Date
Date(Floor(TimeStamp#(YourDateTimeField,'D/M/YYYY h:mm'))) as Date
or
Date(Floor(TimeStamp#(YourDateTimeField,'M/D/YYYY h:mm'))) as Date
or may be this as well:
Date(Date#(SubField(datetime, ' ', 1), 'M/D/YYYY')) as Date
Thanks ALL, I am applying these methods.
This works for me..
Date(num(left(Your_Date_Field,5))) as Your_Date_Field_Name
Give it a try and let me know?
Nico
Thanks All,
It's working...
Thanks Everyone for your response.
Great. Mark correct and helpful answer to close the thread.
Best,
Sunny
Hi Bibhuti,
Mark correct and helpful answer to close the thread.
Nico