访问输入的默认日期格式是什么?

What is the default date format for access input?

我对 ms-access db 不是很有经验。我有以下 sql 代码要求用户输入:

SELECT c.the_date, E.[iD #] AS ID, E.[first name] AS fname
      FROM [date-table] AS c, employeetbl AS E
WHERE c.the_date between [enter a beginning date] and [Enter an end date];

如有任何帮助,我们将不胜感激。

您可以使用 Format 来确保日期以正确的格式输入 table:即 Format (Date, "yyyy-mm-dd").
但是,确保用户输入正确的格式可能有点棘手,因为“2015-03-09”可能是 3 月 9 日或 9 月 3 日。 对于用户输入不能含糊的日期,我想最好的格式是 dd-mmm-yyyy(即 09-mar-201503-sep-2015)。