Jump to content

Recommended Posts

Posted

Dear coders

 

Excel if screwing around again and i am trying to find a nice solution for it for all of us

 

When reading the date from excel i get back amound of days from a specific year 10-23-2017 ( 43030 )

IS there a LSP file who can calculate these days back into readable date?

Posted

There are many variations of the Julian Date.

Excel uses JD-2415020.

You can get the correct date from excel with this:

(menucmd (strcat "m=$(edtime," (rtos (+ 2415020.0 43030)) ",MO-DD-YYYY)")) -> "10-23-2017"

Posted

except for the formatting ( I can fix that in expensive way but I rather add ' to the excel cell that contains the date in order to keep the formatting ) this is perfect

Thanks

Posted
except for the formatting ( I can fix that in expensive way but I rather add ' to the excel cell that contains the date in order to keep the formatting )

 

Here is a reference for the edtime DIESEL function - you can change the 'picture' (currently "MO-DD-YYYY") to whatever you require.

Posted

Thanks guys for the info

I think I can work things out

 

(issue

 

 

I get 1 excel file with dates in it and I do not know the format

Read out excel fill in txt strings in model

format of date needs to remain the same

So I need to read the format of the cell and apply that

 

 

I can make something for that

Posted

Again out of this world Lee Mac comes with a piece of code I can use.

:notworthy::notworthy:

:notworthy::notworthy:

:notworthy::notworthy:

 

 

#cadtutor please rename this emoticon from not worthy to worthy

Posted

I want to become an apprentice of Lee Mac and maybe in the near future I can call myself a programmer also

Posted
I want to become an apprentice of Lee Mac and maybe in the near future I can call myself a programmer also

 

 

How about the Lee Mac University , has a nice ring to it , n'est pas? :-)

Posted
I want to become an apprentice of Lee Mac and maybe in the near future I can call myself a programmer also

 

First you learn how to LISP, then you learn from him how to LeeSP. :lol:

Thats like switching from basic to advanced level.

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...