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!

Date time restriction to time on current date?

Status
Not open for further replies.

MartUK

MIS
Jul 25, 2007
31
GB
I am using CR XI

I want to restrict data from the following :

{SP100_ACTIVITIES.EXPECTED_END} >= DateTime (2007, 07, 13, 00, 00, 00)

to more generalised current date from 6:30 am onwards. Can some one help with the code syntax please
 
Try
Code:
{SP100_ACTIVITIES.EXPECTED_END} >= DateTime (Year(Currentdate), Month(Currentdate),  Datepart("d", Currentdate),  6, 30, 00)

[yinyang] Madawc Williams (East Anglia, UK). Using Windows XP & Crystal 10 [yinyang]
 
thanks this works, any idea on the other time diff question I had?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top