Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Storing a date into its simplest format
Message
 
To
30/01/2008 17:23:50
General information
Forum:
ASP.NET
Category:
Coding, syntax and commands
Environment versions
Environment:
VB 8.0
OS:
Windows XP SP2
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01287307
Message ID:
01287463
Views:
9
>>I have seen dates stored as seconds since a predetermined date. Does that help?
>
>Well, getting its numeric value is not difficult. Date.Now.Ticks would do it. But, how to get it back? That's what I am trying to figure out.

I don't know if it has been answered yet, but the DateTime structure has a constructor where you can pass the number of ticks.
long ticks = DateTime.Now.Ticks;
DateTime aLittleWhileAgo = new DateTime(ticks);
Semper ubi sub ubi.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform