Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Getting start and last time of day
Message
From
10/01/2006 16:27:38
 
General information
Forum:
ASP.NET
Category:
Coding, syntax and commands
Miscellaneous
Thread ID:
01085371
Message ID:
01085389
Views:
19
>This might work for you:
>
>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");
>
This is an interesting approach. The one I did was similar to the approach I used in VFP:
        ltDate1 = DateTime.Parse(Format(tdDate, "dd/MM/yyyy 00:00:00"))
        ltDate2 = DateTime.Parse(Format(tdDate, "dd/MM/yyyy 23:59:59"))
Michel Fournier
Level Extreme Inc.
Designer, architect, owner of the Level Extreme Platform
Subscribe to the site at https://www.levelextreme.com/Home/DataEntry?Activator=55&NoStore=303
Subscription benefits https://www.levelextreme.com/Home/ViewPage?Activator=7&ID=52
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform