Jump to content

Recommended Posts

Posted

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.

Posted

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??:huh:

Posted

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.

Posted

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.

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.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...