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
 All Forums
 Origin Forum for Programming
 LabTalk Forum
 date format

Note: You must be registered in order to post a reply.
To register, click here. Registration is FREE!

Screensize:
UserName:
Password:
Anti-Spam Code:
Format Mode:
Format: BoldItalicizedUnderlineStrikethrough Align LeftCenteredAlign Right Horizontal Rule Insert HyperlinkUpload FileInsert Image Insert CodeInsert QuoteInsert List
   
Message:

* HTML is OFF
* Forum Code is ON
Smilies
Smile [:)] Big Smile [:D] Cool [8D] Blush [:I]
Tongue [:P] Evil [):] Wink [;)] Clown [:o)]
Black Eye [B)] Eight Ball [8] Frown [:(] Shy [8)]
Shocked [:0] Angry [:(!] Dead [xx(] Sleepy [|)]
Kisses [:X] Approve [^] Disapprove [V] Question [?]

 
Check here to subscribe to this topic.
   

T O P I C    R E V I E W
coll@inia. Posted - 03/20/2009 : 4:44:03 PM
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
2   L A T E S T    R E P L I E S    (Newest First)
coll@inia. Posted - 03/24/2009 : 11:48:55 AM
Thank you Greg
greg Posted - 03/23/2009 : 11:06:34 AM
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

The Origin Forum © 2020 Originlab Corporation Go To Top Of Page
Snitz Forums 2000