Is it possible to set a date format in a grid column? I found only a numberMask for numeric columns. Currently a date is always shown as "dd-mm-yyyy hh24:mi:ss" and in my case the time is always 00:00:00, so I would like to define a format which only shows the date portion without time. While we enable sorting and filtering on the column, it has to be a real date column, because otherwise you have no date-filter where you can define ranges.

Thanks for your help.

Kai

asked 02 Nov '15, 11:28

Kai's gravatar image

Kai
111
accept rate: 0%


Hi Kai,

To achieve your request you can use dateField component in your grid column and bind your date datatyped datasource column to this dateField component. dateField component has the dateFormat attribute where you can specify your date format.

Hope this helps,
Ibrahim

link

answered 03 Nov '15, 02:16

Ibrahim%20Sandalli's gravatar image

Ibrahim Sand... ♦♦
1.5k5
accept rate: 25%

Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Tags:

×85
×7
×7

Asked: 02 Nov '15, 11:28

Seen: 688 times

Last updated: 03 Nov '15, 02:16


© Copyright Gerger 2017