Date placeholder

  • Thread starter Thread starter axapta
  • Start date Start date
A

axapta

Hi
I need the input of a text field to be as dd/mm/yyyy how can I achieve this?

Regards
 
If you really wanted to use a textbox,

could you not use a formatted box and then validate the numbers against a
date command.
If the date command works - its a valid date. If not - its not.

Miro
 
A MaskedTextBox or a DateTimePicker support this. You just need to set the
appropriate formatting options on each.
 
Axapta,

A web textbox or a windows form textbox, because the approach to that can be
different?

Cor
 
OK, I implemented a calendar control. The problem seems to be in
configuration.
If I enter 07/06/2005 as a date, the results returned by the SQL SP are
records which match 06/07/2005.

I've set the language to British on the SQL Server ...
 
axapta said:
I need the input of a text field to be as dd/mm/yyyy how can I achieve
this?

In addition to the other replies: Note that different countries, languages,
and cultures use different date and time formats. Thus it does not make
much sense to tie the user to a certain date format which he is maybe not
familiar to.
 
Back
Top