简体   繁体   English

Magmi值替换器news_from_date

[英]Magmi Value Replacer news_from_date

looking for a little bit of assistance for using magmi to create the column news_from_date. 为使用magmi创建news_from_date列寻求帮助。

I try to use the Value Replacer tool to create the column news_from_date. 我尝试使用值替换器工具来创建列news_from_date。 The value that I use is {{date(Ymd)}} . 我使用的值为{{date(Ymd)}}

However when running the import script, the wrong format of date is created (as I can see because in the backend shows the new from date as 30-11-00-1. 但是,在运行导入脚本时,日期格式错误(如我所见,因为在后端将新的起始日期显示为30-11-00-1。

What is incorrect in my syntax? 什么是我的语法错误?

Already tried {{date(Y/m/d)}} but also doesn\\'t seem to work. 已经尝试过{{date(Y/m/d)}}但似乎也没有用。

Thank you for you help. 谢谢你的帮助。

Regards, 问候,

Oebel 欧贝尔

Try using the MySQL date syntax 尝试使用MySQL日期语法

{{date('Y-m-d H:i:s')}}

This is what I use in Magmi and it works. 这就是我在Magmi中使用的方法,并且有效。

Also, don't forget the single quotes ' in the date() function. 另外,不要忘记date()函数中的单引号'

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM