Local call time in the application. When displayed on the screen, you can write it into the configuration file for calling;
/*** Get the current time ** @ return */public static string getcurtime () {date now = new date (); simpledateformat dateformat = new simpledateformat ("mmddhhmm "); string time = dateformat. format (now); return time;} public static int getday () {calendar now = calendar. getinstance (); int day = now. get (calendar. day_of_month); return day;} public static int getmonth () {calendar AR now = calendar ar. getinstance (); int month = now. get (calendar. month); Return month;} public static string getweek () {calendar now = calendar. getinstance (); int week = now. get (calendar. day_of_week); string str_week = ""; Switch (week) {Case 1: str_week = "Sunday"; break; Case 2: str_week = "Monday"; break; Case 3: str_week = "Tuesday"; break; Case 4: str_week = "Wednesday"; break; Case 5: str_week = "Thursday"; break; Case 6: str_week = "Friday "; break; Case 7: str_week = "Saturday"; break; default: break;} return str_week ;}