Hi all,

I find there is a setnumbermask and getnumbermask to set/get number format. What is the API for setting the date format?

Regards.

George.

asked 18 May '14, 09:30

grajan777's gravatar image

grajan777
1011234
accept rate: 10%


Hi George,

Unfortunately, there is not an API to set the date format.

Regards,
Ibrahim

link

answered 18 May '14, 13:17

Ibrahim%20Sandalli's gravatar image

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

Hi Ibrahim,

How can I set my date format to 'DD-MM-YY' or 'DD-MM-YYYY'. Currently my date format is coming as 'DD-MM-YYYY HH.MI.SS'automatically. While entering date, it show the following error: Invalid date format. Valid Example: 19-05-2014 10:50:11. This expects date to be entered with time as well.

Kindly help me to solve this issue.

Regards,

George.

(19 May '14, 02:57) grajan777

Hi George,

Are you aiming to set the dateFormat in runtime or in designtime? In your design XML you can use the dateFormat attribute to achieve your request:

<dateField dateFormat="DD-MM-YYYY"/>

Regards,
Ibrahim

(20 May '14, 15:50) Ibrahim Sand... ♦♦
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:

×7
×3

Asked: 18 May '14, 09:30

Seen: 848 times

Last updated: 20 May '14, 15:50


© Copyright Gerger 2017