Getting just the date from date/time stamp

Lory

New member
Local time
Today, 08:56
Joined
Mar 18, 2003
Messages
7
I have a query based on an imported table that I would like to sort the records on it by date. However, the date field is actually a date/time stamp.

Is there a way to extract just the date without the time?

I certainly hope so!
 
Format(YourDate, "dd, mm yyyy")

Format(YourDate, "Long Date")

Format(YourDate, "Short Date")
 
Thank you!

I knew there was an easy way to do it...but I couldn't remember how!

Thank you so much!

Lory
 
That would still leave the time part although just showing the date part.

You acn use the DateValue() function to get just the date.

i.e

=DateValue(#22/05/03 12:05:29#)

would return exactly:

22/05/03
 

Users who are viewing this thread

Back
Top Bottom