Ureader.com  
Microsoft software help and Community
   home   |   control panel login   |   archive   |  
 
DotNet
acad.assignment.mngr
academic
adonet
aspnet
aspnet.announcements
aspnet.build.controls
aspnet.caching
aspnet.datagridcontrol
aspnet.mobile
aspnet.security
aspnet.webcontrols
aspnet.webservices
clr
compactframework
component_services
datatools
distributed_apps
drawing
faqs
framework
framework.wmi
general
internationalization
interop
languages.csharp
languages.jscript
languages.vb
languages.vb.controls
languages.vb.data
languages.vb.upgrade
languages.vc
languages.vc.libraries
myservices
odbcnet
performance
remoting
scripting
sdk
security
setup
vjsharp
vsa
webservi.enhancements
webservices
windowsforms
windowsforms.controls
winforms.databinding
winforms.designtime
xml
  
 
date: Fri, 4 Jul 2008 12:06:06 +0100,    group: microsoft.public.dotnet.languages.vb        back       


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

Regards
date: Fri, 4 Jul 2008 12:06:06 +0100   author:   axapta

Re: Date placeholder   
On Jul 4, 7:06 am, "axapta"  wrote:
> Hi
> I need the input of a text field to be as dd/mm/yyyy how can I achieve this?
>
> Regards

Simple:

Don't allow the user to directly enter text into the text box and give
them a calender control to pick the date from.

Thanks,

Seth Rowe [MVP]
http://sethrowe.blogspot.com/
date: Fri, 4 Jul 2008 07:12:02 -0700 (PDT)   author:   rowe_newsgroups

Re: Date placeholder   
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

"axapta"  wrote in message 
news:A025D738-CBF7-4430-93DF-CC4EA9C5872C@microsoft.com...
> Hi
> I need the input of a text field to be as dd/mm/yyyy how can I achieve 
> this?
>
> Regards
date: Fri, 4 Jul 2008 10:30:54 -0400   author:   Miro

Re: Date placeholder   
A MaskedTextBox or a DateTimePicker support this.  You just need to set the 
appropriate formatting options on each.

"axapta"  wrote in message 
news:A025D738-CBF7-4430-93DF-CC4EA9C5872C@microsoft.com...
> Hi
> I need the input of a text field to be as dd/mm/yyyy how can I achieve 
> this?
>
> Regards
date: Fri, 4 Jul 2008 10:37:48 -0400   author:   Family Tree Mike

Re: Date placeholder   
Axapta,

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

Cor

"axapta"  schreef in bericht 
news:A025D738-CBF7-4430-93DF-CC4EA9C5872C@microsoft.com...
> Hi
> I need the input of a text field to be as dd/mm/yyyy how can I achieve 
> this?
>
> Regards
date: Fri, 4 Jul 2008 17:40:05 +0200   author:   Cor Ligthert[MVP]

Re: Date placeholder   
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 ...

"Cor Ligthert[MVP]"  wrote in message
news:A0CAEFA7-BF35-4F93-BD36-863758A9F458@microsoft.com...
> Axapta,
>
> A web textbox or a windows form textbox, because the approach to that can
> be different?
>
> Cor
>
> "axapta"  schreef in bericht
> news:A025D738-CBF7-4430-93DF-CC4EA9C5872C@microsoft.com...
>> Hi
>> I need the input of a text field to be as dd/mm/yyyy how can I achieve
>> this?
>>
>> Regards
>
date: Fri, 4 Jul 2008 18:09:38 +0100   author:   axapta

Re: Date placeholder   
Axapta,

But what is on your your client? As SQL server simple returns a DateTime, 
independent from the setting on the Server.

I assume that you use parameters to select that.

http://www.vb-tips.com/SQLParameters.aspx

Cor

"axapta"  schreef in bericht 
news:%23tf0Gjf3IHA.5060@TK2MSFTNGP02.phx.gbl...
> 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 ...
>
> "Cor Ligthert[MVP]"  wrote in message
> news:A0CAEFA7-BF35-4F93-BD36-863758A9F458@microsoft.com...
>> Axapta,
>>
>> A web textbox or a windows form textbox, because the approach to that can
>> be different?
>>
>> Cor
>>
>> "axapta"  schreef in bericht
>> news:A025D738-CBF7-4430-93DF-CC4EA9C5872C@microsoft.com...
>>> Hi
>>> I need the input of a text field to be as dd/mm/yyyy how can I achieve
>>> this?
>>>
>>> Regards
>>
>
date: Fri, 4 Jul 2008 19:46:29 +0200   author:   Cor Ligthert[MVP]

Re: Date placeholder   
"axapta"  schrieb:
> 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.

-- 
 M S   Herfried K. Wagner
M V P  <URL:http://dotnet.mvps.org/>
 V B   <URL:http://dotnet.mvps.org/dotnet/faqs/>
date: Sat, 5 Jul 2008 03:21:37 +0200   author:   Herfried K. Wagner [MVP]

Google
 
Web ureader.com


    COPYRIGHT 2007, YARDI TECHNOLOGY LIMITED, ALL RIGHT RESERVE  |   contact us