Android Question Milliseconds to yyyyMMddHHmmss

ykucuk

Well-Known Member
Licensed User
Longtime User
Hello,

i have a value 1481536800000 as milliseconds. How can i convert this value to yyyyMMddHHmmss

Thank you
 

Mahares

Expert
Licensed User
Longtime User
B4X:
Dim MyOrigdate As String =DateTime.DateFormat
    DateTime.DateFormat ="yyyyMMddHHmmss"
    Dim lngDate As Long= 1481536800000 
    Dim strDate As String = DateTime.Date(lngDate)
    Log(strDate)  'displays 20161212050000
    DateTime.DateFormat=MyOrigdate
 
Upvote 0
Cookies are required to use this site. You must accept them to continue using the site. Learn more…