DateFormat and Miss call Icon

sigster

Active Member
Licensed User
Longtime User
Hi

I am try to format the Date in Widget

if I use "MM/dd/yy" it is ok
but not if I skip the year "MM/dd"

Do anyone know where I can find the Icon from Android call Logs
Miss call, answer and dial

B4X:
      DateTime.TimeFormat = "hh:mm"
       DateTime.Time(DateTime.Now)
      the_time = DateTime.Time(c.Date)
      
      Dim now As Long
      the_date = DateTime.now
      DateTime.DateFormat = "MM/dd"      
      the_date = DateTime.date(c.Date)      
                  
      rv.SetText("Lab_date_time",the_date & " " & the_time)

Thanks

Regards
Sigster
 

sigster

Active Member
Licensed User
Longtime User
Hi
I don't get error using "MM/dd" it just show 11.20.2012
show the time "hh:mm" is ok

Regards
Sigster
 
Upvote 0

Mahares

Expert
Licensed User
Longtime User
B4X:
    Dim the_time, the_date As String
        Dim now As Long
        now = DateTime.now
            
        DateTime.TimeFormat = "hh:mm"
        the_time = DateTime.Time(now)
        DateTime.DateFormat = "MM/dd"        
        the_date = DateTime.date(now)        
        Msgbox("Lab_date_time",the_date & " " & the_time)    'returns 11/20 03:58
 
Upvote 0
Top