The Origin Forum
File Exchange
Try Origin for Free
The Origin Forum
Home | Profile | Register | Active Topics | Members | Search | FAQ | Send File to Tech support
Username:
Password:
Save Password
Forgot your Password? | Admin Options

 All Forums
 Origin Forum for Programming
 LabTalk Forum
 date format
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic

coll@inia.

Spain
125 Posts

Posted - 03/20/2009 :  4:44:03 PM  Show Profile  Edit Topic  Reply with Quote  View user's IP address  Delete Topic
How can I change the date format in @D to DDMMMYY for an script?. I use Operating System: windows XP and Origin6.1

I tried by changing that format in the options dialog and by introducing the statement:
system.date.customFormat1$.

Neither of those work. It seems like the script is using the windows XP format in any case. Why? Can anybody help me?

julio

greg

USA
1379 Posts

Posted - 03/23/2009 :  11:06:34 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
The Date specification requires lowercase d and y so the custom format can be assigned as :

SYSTEM.DATE.CUSTOMFORMAT1$="ddMMMyy";

If this needs to be applied to a column note the sequence (here being applied to column 1) :
wks.col1.subformat=20; // First set the subformat to use CUSTOMFORMAT1
wks.col1.format=4; // Then set the column format to use Date
Go to Top of Page

coll@inia.

Spain
125 Posts

Posted - 03/24/2009 :  11:48:55 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Thank you Greg
Go to Top of Page
  Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
The Origin Forum © 2020 Originlab Corporation Go To Top Of Page
Snitz Forums 2000