Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Help in getting Min of date...

Status
Not open for further replies.

nithink

Programmer
Nov 7, 2002
92
0
0
US
Hi,
I've a date column, p_date. I need to get the
minimum of p_date. Like in oracle I was trying the
min(p_date) but came to know it returns the minimum of
numerical value. Can anyone pls let me know how to get the min of _date ? Thanks....
 
Have you tried this ?
Format(Min(p_date), 'm/dd/yyyy')

Hope This Helps, PH.
Want to get great answers to your Tek-Tips questions? Have a look at FAQ219-2884 or FAQ222-2244
 
SELECT Min([myField]) AS m
FROM myTable;

This works where myField is date/time
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top