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 can find no way of outputting a date field as a unix timestamp in views. Is this at all possible? I'm outputting an xml file to import to another drupal site.
Comments
Comment #1
ollioi CreditAttribution: ollioi commentedI have the same problem. I need the timestamp of the last change date of a node. In database it is stored as atimestamp. But it is just possible to use date format as output. Is it possible to skip the formatting?
Comment #2
mooru CreditAttribution: mooru commentedAlso looking for a solution.
Comment #3
ollioi CreditAttribution: ollioi commentedI got a hint that you just need to create a new date format with U as format and then select it in your views field. Works fine
Comment #4
renatogGood Idea @ollioi. Really makes sense
Comment #5
renatogThank you very much for help @ollioi.
People, any question feel free to comment.
Best,