Commit 898bf09d29cb997df907490b07b6afa4a7c6a962
1 parent
444878ba63
Exists in
master
and in
8 other branches
添加了一个处理传入时间的工具
Showing 1 changed file with 9 additions and 0 deletions
platform-common/src/main/java/com/lyms/platform/common/utils/DateUtil.java
View file @
898bf09
... | ... | @@ -855,5 +855,14 @@ |
855 | 855 | return date; |
856 | 856 | } |
857 | 857 | |
858 | + /** | |
859 | + * @auther HuJiaqi | |
860 | + * @createTime 2016年12月13日 17时10分 | |
861 | + * @discription 格式化传入时间的方法,这个方法很苛刻,必须前后都传了值,而且是2016-12-15+-+2016-12-25格式 | |
862 | + */ | |
863 | + public static Date[] getSNDate(String snDateString) { | |
864 | + return new Date[]{parseYMD(snDateString.substring(0, 10)), parseYMD(snDateString.substring(13, 23))}; | |
865 | + } | |
866 | + | |
858 | 867 | } |