【问题标题】:microsoft access query builder custom date formatmicrosoft access 查询生成器自定义日期格式
【发布时间】:2016-01-05 15:53:59
【问题描述】:

在我需要的未绑定字段的查询构建器中: =SiInm(条件";Format([Fecha];format1);Format([Fecha];format2)) 我有我的情况,我需要的是 format1 返回如下内容:2015 年 4 月 22 日,format2 返回:2015 年 4 月 22 日。

format1 西班牙语,日 'de' 月 'de' 年

英文格式2,月日,年

提前致谢。

【问题讨论】:

    标签: ms-access ms-office date-format query-builder formatdatetime


    【解决方案1】:

    第一个很简单:

    format1 = "d \d\e mmmm \d\e yyyy"
    

    第二个你需要一个函数来返回月份值的英文月份名称:

    =SiInm(Condition;Format([Fecha];"d \d\e mmmm \d\e yyyy");GetEnglishMonthName(Month([Fecha])) & Format([Fecha];" d, yyyy"))
    

    【讨论】:

      猜你喜欢
      • 2016-04-15
      • 1970-01-01
      • 1970-01-01
      • 2015-01-05
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2021-11-25
      相关资源
      最近更新 更多