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

ollioi’s picture

Issue summary: View changes

I 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?

mooru’s picture

Also looking for a solution.

ollioi’s picture

I 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

renatog’s picture

Status: Active » Reviewed & tested by the community

Good Idea @ollioi. Really makes sense

renatog’s picture

Status: Reviewed & tested by the community » Fixed

Thank you very much for help @ollioi.

People, any question feel free to comment.

Best,

Status: Fixed » Closed (fixed)

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