I have a major problem with the date string in iLogic, Inventor 2011.
= DateString
It returns the date with the month before the day (mm/dd/yyyy), something only useful in the Americas.
This is regardless of region settings in control panel.
Is there a way to return the date as dd/mm/yyyy ?
Thanks
Instead of using DateString, a built-in VB function, which always uses MM/DD/YY format, try using "DateTime.Now.ToString()" instead. This takes an optional parameter to control the format of the string.
For example:
DateTime.Now.ToString("d") generates "7/17/2010" in the US, and should use a format appropriate for your system locale. The ToString method supports full customization of the date string, per:
http://msdn.microsoft.com/en-us/library/system.globalization.datetimeformatinfo.aspx
Jeff