Hi,
In my application, I have 2 edit Text inputs:
Both edit text inputs are stored in variable:
And I would like to store the calculation in a new variable:
The calculation being the input date (stored in variable "DateDeCongelation") + the number of months (stored in variable "ValiditeChoisie ")
I know that I am completely wrong with the type of variables I declared.
I tried to find the solution in other threats without success.
Do someone know how I could solve my issue ?
Regards,
Fab
In my application, I have 2 edit Text inputs:
Private edtDateCongel As EditText ' will propose as default the current date and will receive from user the date to use for calculation
Private edtValidite As EditText ' will propose a default value extracted for a SQLite db and will receive the number of months to use for calculation
Private edtValidite As EditText ' will propose a default value extracted for a SQLite db and will receive the number of months to use for calculation
Both edit text inputs are stored in variable:
Private DateDeCongelation As String
Private ValiditeChoisie As Int
DateDeCongelation = edtDateCongel.Text ' Correspond to the date when the article has been frozen
ValiditeChoisie = edtValidite.Text ' Correspond to the number of months the article can be kept
Private ValiditeChoisie As Int
DateDeCongelation = edtDateCongel.Text ' Correspond to the date when the article has been frozen
ValiditeChoisie = edtValidite.Text ' Correspond to the number of months the article can be kept
And I would like to store the calculation in a new variable:
Private ExpiryDate As String
The calculation being the input date (stored in variable "DateDeCongelation") + the number of months (stored in variable "ValiditeChoisie ")
I know that I am completely wrong with the type of variables I declared.
I tried to find the solution in other threats without success.
Do someone know how I could solve my issue ?
Regards,
Fab