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 SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How can I have this done?

Status
Not open for further replies.

ajayz90

Programmer
Nov 12, 2002
65
0
0
US
I want to compare two dates startdate and enddate and is the date protion of the two is the same display just the end time for the end date else display the end date and the end time for the end date.


Thanks In anticipation.

Ajay
 
IF DateValue(StartDate) = DateValue(EndDate) THEN
Time(EndDate)
ELSE
DateTime(EndDate) //same as EndDate
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top