I am creating a new entity in a rule and would like the entity to have a name, plus the current date. I can use the replacement pattern of [site:current-date] but it delivers a date and a time, which I don't want. (The entity created is a new newsletter, which will be sent out on cron and will not match the time)

Is there any way to use a predefined date type instead of this default?

Comments

mitchell’s picture

Maybe trim string from Rules Data Transforms? There's gotta be a cleaner way though.

TR’s picture

Version: 7.x-2.1 » 7.x-2.x-dev
Issue summary: View changes
Status: Active » Fixed

See what I wrote in #758994-5: Date, String, and Number should have better token replacement support.

If you install the contributed (not core) Token module, you will get enhanced date token support.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.