Here you can find the source of GetDayOfMonth(String aDatetime)
Parameter | Description |
---|---|
aDatetime | format: yyyy.mm.dd. |
public static int GetDayOfMonth(String aDatetime)
//package com.java2s; //License from project: Apache License public class Main { /**//w w w . j a v a2 s.c o m * * @param aDatetime format: yyyy.mm.dd. * @return */ public static int GetDayOfMonth(String aDatetime) { String[] lParts = aDatetime.split("\\.", 0); while (lParts[2].startsWith("0")) lParts[2] = lParts[2].substring(1); return Integer.parseInt(lParts[2]); } }