orh thanks Mr.Hovik, im sorry for the tread above, what i actually want is to get the time of the end of the day like this:
10/9/2003 23:59:59
and i use "DateTime.today" to get
10/9/2003 00:00:00
i got another way to achieve what i want this morning, but i dont mind to know more syntax to get the 10/9/2003 23:59:59 :p
Mind if i ask sir another question? pls take a look for my sql statement
dim MySQL as string="Select TimeIn, Staff , ServiceType from ServiceInfo where ServiceType='FollowUp' "
after the where clause, i tried to select those serviceType=FollowUp. Actually i also want to select those serviceType=Routine, i tried to use or as code below, but it dint work...
dim MySQL as string="Select TimeIn, Staff , ServiceType from ServiceInfo where ServiceType='FollowUp' or 'Routine'"
dim MySQL as string="Select TimeIn, Staff , ServiceType from ServiceInfo where ServiceType='FollowUp' And ServiceType='Routine'"
do sir know what i means? i want to select all those record with 'Routine' or 'FollowUp' in ServiceType field... i keep on trying, just cant get it work...
i know its better to use parameters, but if i cant make this work in normal way, i think i'll nv make it work with parameters... thanks for ur advice sir.
Best Regards
life's Ng
|