Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
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
Comment #1
mitchell CreditAttribution: mitchell commentedMaybe trim string from Rules Data Transforms? There's gotta be a cleaner way though.
Comment #2
TR CreditAttribution: TR commentedSee 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.