BIGAL Posted November 12, 2009 Posted November 12, 2009 We have a weird problem we use a lisp program to date stamp our plans. It works perfect on all but 1 computer on that one it writes the date incorrect. Instead of dd/mm/year it puts it mm/dd/year. Its obviously a date setting somewhere either the computer or Autocad anyone know of the answer we have tried lots of things. Quote
alanjt Posted November 12, 2009 Posted November 12, 2009 I would say it shouldn't matter, since you are defining what you want for each thing. Are you using diesel or extracting it from (getvar 'cdate)? Maybe a country setting in Windohz?? Quote
Tankman Posted November 12, 2009 Posted November 12, 2009 Certainly sounds like a country setting in in the suspect desktop. This'll most likely boil down to the specific workstation's country M$ date setting. Quote
BIGAL Posted November 17, 2009 Author Posted November 17, 2009 here is a copy of the code its in VBA as I siad works fine on all machines except 1 Public Function DashDate() As String Dim strDate As String Dim intMonth As Integer Dim intDay As Integer strDate = Str(Date) intMonth = InStr(1, strDate, "/", vbTextCompare) intDay = InStr(intMonth, strDate, "/", vbTextCompare) strDate = Left(strDate, intMonth - 1) & "." _ & Mid(strDate, intMonth + 1, intDay - 1) & "." & Right(strDate, 2) DashDate = strDate End Function Tankman you refer to the M$ variable could you explain more please. Checked the tim&date settings etc in windows and are the same as others. Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.