Date/time loaded from Basic4PPC

acedashdog

Member
Licensed User
Longtime User
This is, I hope, just a 'how to' question.

I have an application in B4PPC that (among other things) captures a date from a calendar control.

It stores its' data in a plain ol' text file, writing this data like so:

FileWrite(c1,calendarcreated.Value)

which of course creates a whopping great string of numbers, the ticks value.

Now, I'm writing its' brother in B4A, and I need it to eat and dump the same files.

How do I convert the ticks value I read in to a date? datetime.date(tempcreated) doesn't work.

Also, have I missed something, or is there no Calendar control in B4A? An odd omission if there isn't...
 

Erel

B4X founder
Staff member
Licensed User
Longtime User
Upvote 0
Top