>>DateTime now = DateTime.Now; >> >>DateTime start = now.Date; >>DateTime end = now.Date; >>end = end.AddDays(1); >>end = end.AddSeconds(-1); >> >>MessageBox.Show(start.ToString(),"start"); >>MessageBox.Show(end.ToString(),"end"); >>>
> ltDate1 = DateTime.Parse(Format(tdDate, "dd/MM/yyyy 00:00:00")) > ltDate2 = DateTime.Parse(Format(tdDate, "dd/MM/yyyy 23:59:59")) >Just as many ways to skin the cat with .NET as there are with VFP :)