Home News Contact Us Forum About Us Demos Products F.A.Q.
Shopping Cart
You currently have 0 items in your cart.


Recent Events
  • 23/11/2024 Black Friday 2024

    BIG SALE, 30% discount for all our extensions. Use BF24 coupon code. Hurry up the discount is valid till 3 December.

  • 31/12/2023 New Year SALE

    We are glad to announce New Year SALE. 25% discount for all our extensions. Use NY24 coupon code. Hurry up the discount is valid till 7 January.


2Checkout.com, Inc. is an authorized retailer of goods and services provided by ARI Soft. 2CheckOut




Follow us on twitter



Welcome, Guest
Please Login or Register.    Lost Password?

Display date format in %d %b %Y %T:%f ?
(1 viewing) (1) Guest
Go to bottomPage: 1
TOPIC: Display date format in %d %b %Y %T:%f ?
*
#46332
Display date format in %d %b %Y %T:%f ? 11 Years ago Karma: 0
Hello ARI-Soft

My DB-table is filled with date-time data like 2013-11-01 04:37:00 .
Is there a way to display the date - time format in 04:37:00 01-11-2013 ( like %d %b %Y %T:%f ) ?

I use this query:
Code:

SELECT tijd, waterhoogte, extreem, tijd_maan, maanfase FROM #__getijden WHERE tijd>=CURDATE() 

on this page in the column 'datum'.
The ARI-tags are like this:
Code:

 {arisqltable} {arisqltablecolumns} {arisqltablecolumn id="tijd" alias="Datum" width="20%" className="idg"}


Regards,
Jan
The administrator has disabled public write access.
 
#46334
Re:Display date format in %d %b %Y %T:%f ? 11 Years ago Karma: 760
Hello,

See DATE_FORMAT MySQL function.

Regards,
ARI Soft
The administrator has disabled public write access.
 
#46378
Re:Display date format in %d %b %Y %T:%f ? 10 Years, 12 Months ago Karma: 0
Many thanks for your link, it did bring me to the right point of view.
For now this is my code and it works fine:
Code:

 {arisqltablequery} SELECT date_format(tijd,'%d-%m-%Y - %H:%i:%s') AS Datum, waterhoogte, extreem, maanfase, date_format(tijd_maan,'%d-%m-%Y - %H:%i:%s') AS Maantijd FROM #__getijden WHERE tijd >=CURDATE() {/arisqltablequery}


Kind regards,
Jan
The administrator has disabled public write access.
 
#48109
Re:Display date format in %d %b %Y %T:%f ? 10 Years, 9 Months ago Karma: 0
Last Edit: 2014/02/24 18:03 By amheng5.Reason: sorry saw reply earlier.
The administrator has disabled public write access.
 
Go to topPage: 1