联系表 7 英国格式的日期
Contact Form 7 Date in UK Format
我一直在尝试让日期以英国格式显示
这是我用来在网站上显示日期选择器的代码
<p>Lesson Start Date <span>[date date-501 _format_date-501 "D, d M y"]</span> </p>
这是我在邮件部分使用的代码,用于打印电子邮件中的信息
<strong>Lesson Start Date:</strong> [date-501]
然而无法让它工作。
你的事情发生了逆转。 [_format_{field name} "{date format}"]
范例适用于邮件字段,而不是表单字段。这意味着您的邮件字段应该是:
[_format_date-501 "D, d M y"]
您应该从表单的日期字段中删除 _format
:
<p>Lesson Start Date <span>[date date-501]</span> </p>
详细了解日期格式 in the docs。
我一直在尝试让日期以英国格式显示
这是我用来在网站上显示日期选择器的代码
<p>Lesson Start Date <span>[date date-501 _format_date-501 "D, d M y"]</span> </p>
这是我在邮件部分使用的代码,用于打印电子邮件中的信息
<strong>Lesson Start Date:</strong> [date-501]
然而无法让它工作。
你的事情发生了逆转。 [_format_{field name} "{date format}"]
范例适用于邮件字段,而不是表单字段。这意味着您的邮件字段应该是:
[_format_date-501 "D, d M y"]
您应该从表单的日期字段中删除 _format
:
<p>Lesson Start Date <span>[date date-501]</span> </p>
详细了解日期格式 in the docs。