Message 1 of 4

Not applicable
06-17-2016
02:53 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hi,
I have a problem with reading out dates from the iproperties its as follows..
Im using a vb.net maskedtextbox which is as follows 00-00-0000 the problem is that the the input from inventor changes 01-01-2016 to 11-20-16 removing the 0 from days and moths befor the value of 10.
I could read the data in backwards (starting with the year) thats the years fixed but months and days are tricky take for example 01-11-2016 which is read by my masked textbox as 11-12-016 now I dont know weather its the 11th of january or the 1st of November.
how can I fix this in inventors vb.net/ API
tghe way i read the data into the textbox is as follows.
' Get the custom property set. Dim DESTRACKPropSet As Inventor.PropertySet DESTRACKPropSet = Doc.PropertySets.Item("Design Tracking Properties") ' Get the existing property, if it exists. Dim PROPDATE As Inventor.Property = Nothing PROPDATE = DESTRACKPropSet.Item("Date Checked") Dim VALDATE As String = PROPDATE.Value MaskedTextBox1.Text = VALDATE.Split(" "c)(0)
Solved! Go to Solution.