Talk:Java Programming/Client Server

import java.util.Calendar; import java.text.SimpleDateFormat; public class GetDateNow{ public static void main(String args[]){ Calendar currentDate=Calendar.getInstance; SimpleDateFormat formatter= new SimpleDateFormat("yyyy/MMMM/ddHH:mm:ss"); String dateNow=formatter.format(currentDate.getTime); System.out.println("Now the date is:=>"+dateNow); } }