TOPIC:

Calendar - how add days? 9 years 3 months ago #77431

  • jonnyrt's Avatar Topic Author
  • jonnyrt
  • Offline
  • Junior Breezer
  • Junior Breezer
  • Posts: 40
  • Thanks: 2
Hi there!

I use BF 1.7.5 with CB and want to show the user in list view the date (or how many Days) there article is online.
So what i ask for is, how can i add to a date 90 days?

in a text field (BF) i put

<?php return date("d-m-Y") ?>

and in a 2nd field i whant to add 90 days.

Please help
Hans

Please Log in or Create an account to join the conversation.

Re: Calendar - how add days? 9 years 3 months ago #77470

  • djhargrove's Avatar
  • djhargrove
  • Offline
  • Ultimate Breezer
  • Ultimate Breezer
  • Official Support
  • Posts: 3419
  • Thanks: 222
it requires a tiny bit of coding but its here:

stackoverflow.com/questions/277247/incre...-to-php-current-date

Please Log in or Create an account to join the conversation.

Re: Calendar - how add days? 9 years 3 months ago #77508

  • jonnyrt's Avatar Topic Author
  • jonnyrt
  • Offline
  • Junior Breezer
  • Junior Breezer
  • Posts: 40
  • Thanks: 2
Thanks - i will try it (but i am not a coder ;-)

Hans

Please Log in or Create an account to join the conversation.

Re: Calendar - how add days? 9 years 3 months ago #77533

  • djhargrove's Avatar
  • djhargrove
  • Offline
  • Ultimate Breezer
  • Ultimate Breezer
  • Official Support
  • Posts: 3419
  • Thanks: 222
I se... well its your lucky day I'll trade you a review for a code (jk but a review would be awesome if you can with my name in it)

<?php echo date('Y-m-d', strtotime("+90 days"));?>


the "+90" is the only part you have to change if you want a different day


If you use BreezingForms (Free Old Version), please post a rating and a review at the Joomla! Extensions Directory:
extensions.joomla.org/extensions/contact...-feedback/forms/8001

Please Log in or Create an account to join the conversation.

Re: Calendar - how add days? 9 years 3 months ago #77592

  • jonnyrt's Avatar Topic Author
  • jonnyrt
  • Offline
  • Junior Breezer
  • Junior Breezer
  • Posts: 40
  • Thanks: 2
Its done last week!


extensions.joomla.org/index.php?option=c...iewlink&link_id=4709

Thanks again - I think I owe you a beer too!

your code work s as i expect. and without blub and lol :cheer:

hans

Please Log in or Create an account to join the conversation.

Re: Calendar - how add days? 9 years 3 months ago #77647

  • djhargrove's Avatar
  • djhargrove
  • Offline
  • Ultimate Breezer
  • Ultimate Breezer
  • Official Support
  • Posts: 3419
  • Thanks: 222
your most welcome but could you post one for the free version ( since your in the free forums :D)

extensions.joomla.org/extensions/contact...-feedback/forms/8001

if not I understand and truly appreciate the one for the paid version

Please Log in or Create an account to join the conversation.

  • Page:
  • 1
Time to create page: 0.044 seconds

BreezingForms Pro 1.4.7 for WordPress Released!

Available in the membership section.

September Discount!

Massive discounts on all subscriptions!

Get Your Subscription Here

Quick Links

Downloads

BreezingForms

ContentBuilder

BreezingCommerce

Templates

Documentation

BreezingForms

ContentBuilder

BreezingCommerce

Apprendre BreezingForms (French Community)

Apprendre et maîtriser BreezingForms par des tutoriels et exemples, le tout en français

breezingforms.eddy-vh.com

Questions et réponses sur les forums de l'AFUJ

AFUJ

Special Offer

Summer Sale! All subscriptions at a special price!

Includes prio support, all of our current and future Joomla!® extensions and Joomla!® templates for the duration of your membership.

Get it from here

3rd Party Discount - 25% Off

We help you to keep your costs under control. If you are a new member and purchased a form building tool from a different form vendor, then you'll get a 25% discount on our subscription plans.

How to receive the discount:

Send us a quick email to sales@crosstec.org with a proof of purchase (for example a paypal receipt), await payment instructions and enjoy your membership!