static void ShowDate2Str(Args _args)
{
    Date        FrDate;
    ;
    FrDate = SystemDateGet();
    info(date2str(FrDate,213,2,3,2,3,4));  //输出结果:05-26-2011
}

 

Date2Str()参数说明:

Date2Str(待转日期,日期格式,天长度,天分隔符,月长度,月分隔符,年长度)

分隔符的几种表示:0表示无分隔符;1表示空格;2表示点符号;3表示“-”符号;4表示“/”符号

日期格式:

213表示  MDY

可以得知,1表示day ; 2表示month; 3表示year

相关文章:

  • 2021-06-08
  • 2022-01-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-07-02
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2021-06-11
  • 2021-10-06
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-10-21
相关资源
相似解决方案