Is there a way to format a date in Drupal rules? I've got a date timestamp, but obviously that's less than ideal for a client-facing situation.

How do you change a field to a different sort of formatting while in the rules UI?

  • Is this date timestamp a component? – Steven Oct 3 '13 at 15:04
  • It's a date field from a node. – Jack Ryan Oct 3 '13 at 17:19

Can't you use [node:field_calendar_date:custom:l, Fd, gia]? Custom being whatever date format you set up. (like the presets: short, medium, long)

Make sense?

  • I tried to do this, and it just showed me the plan text of the above. I don't think I tried custom though. Let me check that. – Jack Ryan Oct 4 '13 at 13:04
  • [entity-fetched:field_date_time_3:custom:Medium] is what I get. – Jack Ryan Oct 4 '13 at 13:08

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.