Hello,
i have 4 Start days (i dont need hours, minutes & seconds) and each of them CAN have a different value.
For each of these 4 dates i want to add a timespan in full days (i.e. Number 1 = 90, Number 2 = 60 etc.)
Now i (simple) want to add the days to the relating start dates and displaying the end date.
The parameters like Start date and number of days is saved as a map via the Setup-Part of the app and works fine.
I tried some sample codes from DateUtils and here is my code so far:
(The declarations (DIM) as Label, Label and Int is done in the header)
The following error occurs:
..."unparseable date": 17.02.2013
Is it because i am using not the US-format 02/17/13 or Feb 17 13 ?
And if, can i change (via B4A) the format so that it fits ?
I also tried out several variations from the samples, without success
I code normally in visual basic and i am just a Newbie here .
Thx in advance
Gman
(Sorry for my english, its not my native language )
i have 4 Start days (i dont need hours, minutes & seconds) and each of them CAN have a different value.
For each of these 4 dates i want to add a timespan in full days (i.e. Number 1 = 90, Number 2 = 60 etc.)
Now i (simple) want to add the days to the relating start dates and displaying the end date.
The parameters like Start date and number of days is saved as a map via the Setup-Part of the app and works fine.
I tried some sample codes from DateUtils and here is my code so far:
(The declarations (DIM) as Label, Label and Int is done in the header)
B4X:
sets = File.ReadMap(File.DirRootExternal, "test1.map")
MyLabel1.Text = sets.Get("Textlabel1")
MyLabel1Startdate.Text = sets.Get("sDate1") ' i.e. 17.02.2013
MyLabel1days.Text = sets.Get("Days1") ' i.e. 90 (days)
AddPeriod(MyLabel1Startdate.Text,MyLabel1days)
The following error occurs:
..."unparseable date": 17.02.2013
Is it because i am using not the US-format 02/17/13 or Feb 17 13 ?
And if, can i change (via B4A) the format so that it fits ?
I also tried out several variations from the samples, without success
I code normally in visual basic and i am just a Newbie here .
Thx in advance
Gman
(Sorry for my english, its not my native language )
Last edited: