How to convert / cast long to String?

前端 未结 8 1078
借酒劲吻你
借酒劲吻你 2020-12-04 05:14

I just created sample BB app, which can allow to choose the date.

DateField curDateFld = new DateField(\"Choose Date: \",
  System.currentTimeMillis(), DateF         


        
相关标签:
8条回答
  • 2020-12-04 06:08
    String strLong = Long.toString(longNumber);
    

    Simple and works fine :-)

    0 讨论(0)
  • 2020-12-04 06:08

    very simple, just concatenate the long to a string.

    long date = curDateFld.getDate(); 
    String str = ""+date;
    
    0 讨论(0)
提交回复
热议问题