I am really new to C# and I am having problem in converting DateTime to it's Integer date format. I have search already the net but I did not find my answer.
I want is to convert the current Date to integer. Example the date "2011-08-11" in format "yyyy-MM-dd" has an integer value of 734360
u can also use this way.
Pervasive uses days since 1/1/1.
To convert from int to a date use
To convert to an int from a date use
You can try this too:
if it is what you're looking for.
myDateTime.Ticks
will give you a uniquely representativeInt64
value if that is what you need.