DateTime format conversion in mobile


I need to get date format as "dd-mm-yyyy", for this i have used a local variable of type date and time inside an input widget. For some mobiles it is working properly as expected("dd-mm-yyyy). But in some mobiles it is showing ("mm-dd-yyyy").

I have to convert the date format to dd-mm-yyyy and time to 24hrs format in mobile to display as same in every mobile. For this Iam using "Date picker widget" . Iam able to assign values  through which the default value will be ("13 jun 2019"), but to convert  i have to use FormatDateTime()  to "dd-mm-yyyy", but I have date and time value in a attribute value.

Can I get "dd-mm-yyyy" format without using "Date Picker"? Please help

Thank You.