0

I have a content type that when created is "due" 10 days later. I'm looking to create a field that has a numerical value of the days left before it is due and if it is past due, show a negative integer value. This field will be used for Views sorting, so I can't use javascript counters like the countdown module.

Can anyone help on how to do this?

1 Answer 1

0

I would start with a standard date field and then create a new field formatter that displays the date in the way you describe.

Before you dig in I would look around for someone that has already done this, it seems like a pretty common use case for working with a date.

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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