Login or create new account.

By registering on joomprod.com, you will have immediate access to all our free products and to the public side of our support forum.

Enjoy our subscriptions.

Each of our subscriptions allow you to enjoy the private side of the support forum and all the update of our products for a period ranging from 3 months to 1 year.

Payment And immediate download.

After subscribing to one of our subscription, the products are immediately downloadable.

Login

Or Register
Accueil / forum / Public Forum / Main Forum / Datefield acts like textfield

Support Availability Because we must sleep sometimes

Working days: Monday to Friday.
Reply time: Depending on the complexity of your support issue it's usually between a few hours to 48 hours.

Support is only guaranteed to paid subscribers

AdsManager - End of life

It is with great regrets that we have chosen to end the developpement of Adsmanager and its other associated components.

AdsManager is born 10 years ago and, as of today, the number of new subscriptions and downloads have fallen and we cannot maintain the component anymore.

All active subscribers will be able to continue enjoying support until the end of their subscription.

The components will be free and no support will be provided anymore for the other users.

×

Notice

The forum is in read only mode.

× OLD Forum post could be checked here : forum.joomprod.com

Datefield acts like textfield

More
11 years 4 months ago #2493 by emperor_nld
Datefield acts like textfield was created by emperor_nld
Hello,

When I create a new field in the admin part of adsmanager and select Date as Type, the field created in de Database is a textfield.
The field displays like dd-mm-yyyy, that's Ok, but when sorting this field it orders like text and not like date.
For example: sort the dates: 16-11-2013, 05-12-2013 and 27-12-2013 ASC, results in 05-12-2013, 16-11-2013 and 27-12-2013.
Desc, results in 27-12-2013, 16-11-2013 and 05-12-1013.

So what to do? :unsure:

Thanks in advange
Ronald
More
11 years 4 months ago #2495 by tompap
Replied by tompap on topic Datefield acts like textfield
Yes I agree on this limitation. What I would suggest s to set the format YYYY-mm-dd. and do some code customization when displaying the date to display it like you want something like

date("dmY",strtotime($fieldvalue));

I don't have any short solution to solve this.
The following user(s) said Thank You: emperor_nld
More
11 years 4 months ago #2518 by emperor_nld
Replied by emperor_nld on topic Datefield acts like textfield
thanks a lot for the answer.
Could you please be a bit more specific where i have to do some custimization.
Sorry. I'am not so in to the adsmanager code :-(

Thanks a lot

Grtz
Ronald
More
11 years 4 months ago #2571 by tompap
Replied by tompap on topic Datefield acts like textfield
This is normally out of support, and you don't have any subscription.

You are asking like we said in france: 'le beurre et l'argent du beurre :)"
Moderators: perry
Time to create page: 0.116 seconds
Powered by Kunena Forum