• Resolved PatNarciso

    (@patnarciso)


    Hey there,

    Great plugin, thank you.

    Do you have a working example of how to setup a datetime fields that reads a unix timestamp value, and returns (via post) the unix timestamp?

    jQuery doc says to use ‘@’ as the parse value. But that only gets me so far.

    In the demo examples, I see date, time, and datetime — however when I get close, the returned value is: UTS(of the date) + ‘ ‘ + hh:ss.

    I also see via the changelog a bunch of references towards internal unix timestamp.

    Thank you–

    https://ww.wp.xz.cn/plugins/meta-box/

Viewing 1 replies (of 1 total)
  • Plugin Author Anh Tran

    (@rilwis)

    Hi, you just need to add a parameter ‘timestamp’ = true to datetime field, it will saves datetime in unix timestamp and still displays in a human-readble format.

Viewing 1 replies (of 1 total)

The topic ‘Unixtimestamp Example’ is closed to new replies.