Create a Drupal 7 Token `date_plus_dates`

Closed Posted 5 years ago Paid on delivery
Closed Paid on delivery

I need a Drupal 7 Token (module) that would output me current date plus n days.

In php, I could get the date using `<?php $date = strtotime("+7 day"); echo date('d. M. Y', $date); ?>` (for 7 days offset), but I can’t make it work in Drupal 7.59.

I must be available in Available tokens dialogue, where there would a custom token group `date_plus_days`. The module itself would be named `date_plus_days` or `Date Plus Days`. I don’t care what the description would be (make it clear with example output).

Let me type `[date_plus_days:date_plus_days:#]` (where `#` is the offset int) as token. Ideally, it would be nice to have an option to define the date format from there, i.e. `[date_plus_days:date_plus_days:DATEFORMAT:#]` (just like we can in `[current-date:custom:DATEFORMAT]`), but should I choose between date format and offset integer, I choose offset integer and let the date format be hard-coded as `d. M. Y` (e.g. 01. 01. 2018).

Example output for today (12 Sep 2018) and 7-day offset: 19. 09. 2018

As for the price: how much would you like?

Graphic Design HTML PHP Website Design

Project ID: #17754933

About the project

2 proposals Remote project Active 5 years ago

2 freelancers are bidding on average €47 for this job

nvbhuvi

Hello sir give me link of code and site i will fix this custom token is working on this point please ping me back i am drupal expert Thanks

€34 EUR in 10 days
(2 Reviews)
1.6
srivanikannan

I have around 12+yrs of experience in Drupal web application development (starting from Drupal 4.7 to Drupal 8.5). I have a strong expertise in Drupal8 specifically in module/theme development, data migration, REST A More

€60 EUR in 3 days
(0 Reviews)
0.0