Android Question AnotherDatePicker formatting date from long to string

Penfound

Active Member
Licensed User
Longtime User
I know there has got to be something I'm missing here, but I can't see it.

How do I get the date as presented by ADP.GetDate() as a long into a label text formatted as .toString("dd MMM yyyy")

Thanks
Penfound
 
There might be a more direct approach but..

Code: Copy
DateTime.DateFormat = "dd MMM yyyy"
   Label1.text =  DateTime.Date(ADP.GetDate)
 
Upvote 0
Just as I thought unbelievably easy! I completely forgot about DateTime functions. Thank you so much mj :)
 
Upvote 0
Back
Top