cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Try the Materials Informatics Toolkit, which is designed to easily handle SMILES data. This and other helpful add-ins are available in the JMP® Marketplace
Choose Language Hide Translation Bar
Georgios_Tsim
Level III

Unknown date format

For some reason I get the following error:

 

Unknown format: d-m-y

due to the following line of code.

Georgios_Tsim_0-1736509229695.png

Once I run the code in my colleague's PC it runs properly.(We have the same version 16.2)

 

In addition when we compare the available formats under the "Column info" choice I get:

Georgios_Tsim_1-1736509461517.png

and he has way more choices.....

 

Any idea of how I should fix it?

7 REPLIES 7
Craige_Hales
Super User

Re: Unknown date format

try changing the - to /

edit: and make sure you are not confusing the date and time format submenus.

Craige
Georgios_Tsim
Level III

Re: Unknown date format

This is not a solution. I am not confused and I know what I have to do, so that the code compiles at my PC.

What I asked is: why my JMP does not offer the same date formats as my colleagues even though we have the same version?

jthi
Super User

Re: Unknown date format

Possibly you have different date settings on your PCs OR in JMP.

-Jarmo
Georgios_Tsim
Level III

Re: Unknown date format

Thanks for your response. Where can I find my date settings in JMP?

jthi
Super User

Re: Unknown date format

Preferences / Windows Specific (no idea how it would be for mac)

jthi_1-1736516634031.png

 

 

-Jarmo
Georgios_Tsim
Level III

Re: Unknown date format

Okay It still doesnt work!

Even though I change the settings it does not appear the format 

d-m-y

Another weird thing is that I tried my JMP 14 version there I have this format that I want.....

Unbelievable!!!

Any idea why does this happen?

jthi
Super User

Re: Unknown date format

Do you both have same date and time settings on your PCs? (Also JMP14 and JMP16.2 aren't the same software, I think it was JMP16 which did change some formatting things). I don't have that formatting option either

jthi_0-1736520417219.png

In my opinion only way to have somewhat reliable date formatting in JMP is to use Format Pattern and I think it was added in JMP16.

Names Default To Here(1);

dt = New Table("Untitled",
	Add Rows(1),
	Compress File When Saved(1),
	New Column("Column 1",
		Numeric,
		"Continuous",
		Format("Best", 12),
		Set Values([3660681600])
	)
);

Column(dt, 1) << Format(
	"Format Pattern", "<DD><-><MM><-><YYYY>"
);

You could also contact JMP Support. They might have pretty good idea what could be going on and they might know for example extra commands you could run to check which formats JMP is using and why.

-Jarmo