Date format for setting start and end date to Outlook appointment in java code
问题 I am creating an appointment in Outlook through java code. here I can set new values to the fields in appointment. The code for it is OleAutomation appointment = invoke(outlook, "CreateItem", 1).getAutomation(); appointment.setProperty(property(appointment, "Subject"), new Variant("Test")); this code will set the subject field with the value "Test". here i am using generic OLE mechanism "Variant" for passing data of different types via a common interface Now I want to know how to set a date