Date Format in view mode dd-mm-yyyy

Talk about implementing of customized templates

Moderators: ne_moj, zewa

grisu122
Newbie
Newbie
Posts: 4
Joined: Jul 2nd, '11, 09:39

Date Format in view mode dd-mm-yyyy

Postby grisu122 » Aug 2nd, '12, 11:19

hello,

How i can display the Date Format in view mode dd-mm-yyyy.


7. Add/Edit/Details Mode Settings:
'date_field'=>array('header'=>'Datum','calendar_type'=>'floating','visible'=>'true','type'=>'datedmy','align'=>'left','width'=>'','req_type'=>'sy','maxlength'=>'-1','readonly'=>'false','unique'=>'false','default'=>'',),


here is it ok

thx stefan

grisu122
Newbie
Newbie
Posts: 4
Joined: Jul 2nd, '11, 09:39

Re: Date Format in view mode dd-mm-yyyy

Postby grisu122 » Aug 3rd, '12, 11:08

## *** set data source with required settings
## *** 1. write all fields separated by commas(,) like: field1, field2 etc.. DON'T USE table.*
## *** 2. write the primary key in the first place (MUST BE AUTO-INCREMENT NUMERIC!)

$sql = 'SELECT
id,
Auto,
Namen,
DATE_FORMAT(datum,"%d.%m.%Y") AS Datum,
Info,
Datum,
Ausgabe

FROM Tablename';

administrator
Site Admin
Site Admin
Posts: 5939
Joined: Jan 7th, '09, 23:18
Contact:

Re: Date Format in view mode dd-mm-yyyy

Postby administrator » Aug 5th, '12, 07:29

Now, just use "label" field to display Datum column:
viewtopic.php?f=33&t=1935


Return to “Add/Edit/View Mode Templates Implementing”