Job as below.
Wrote by Jimmy on Feb 11th 2011
static void Jimmy_date2str(Args _args) { date d; ; infolog.language("ZH-HANS");//中文 infolog.language("EN-US");//英文 infolog.navPane().loadStartupButtons(); Infolog.navPane().refreshFavorites(infolog.navPane().selectedFavoriteGroup(),xInfo::currentWorkspaceNum()); print date2str(today(),321,2,3,1,3,4);//2011-2-11 print date2str(today(),321,2,3,2,3,4);//2011-02-11 print date2Str(today(),321,2,-1,2,-1,4);//2011-02-11 print date2str(today(),123,2,3,1,3,4);//11-2-2011 print date2str(today(),123,2,3,2,3,4);//11-02-2011 print date2str(today(),123,2,3,3,3,4);//月份为三个字符串 11-Feb-2011 print date2str(today(),123,2,3,4,3,4);//月份为英文全称 11-February-2011 d = str2Date("01/01/1999", 123);//1999-1-1 print d; pause; }