【发布时间】:2016-10-14 16:40:06
【问题描述】:
我想将字符串日期转换为整数并从该整数中获取月份我该怎么做??
例如: 我的字符串日期为:
String date = "15-06-2016";
那么我怎样才能得到月份:
06 as output in integer
【问题讨论】:
-
相反,您可以使用 Java 方式来执行此操作。此链接可能会对您有所帮助。 stackoverflow.com/questions/6510724/…