I am new to OO/LO macro. I have created a dialog with DateField
and I am setting the value for that field as
dlgObj = CreateUnoDialog(DialogLibraries.Standard.myDialog)
dlgObj.GetControl("date_field_name_value").Text = Now
Later I am trying to get the Date
value from this object as
dlgObj.GetControl("date_field_name_value").Text
I am getting the value in String format not a date format. Yes, the property name clearly shows its type Text. But I tried Date, getDate()
gives some object but no idea what it is and how to get the date value from this. or any other way. The Date.Month or Date.Year gives value 0.
Please guide me for proper way to set and get the Date
value to or from the DateField
.