PC Review


Reply
Thread Tools Rate Thread

date format using oledb provider and ms access in .net

 
 
Bernie Yaeger
Guest
Posts: n/a
 
      12th Jan 2005
How can I select a date column in an Access table such that the select will
return a string in yyyymmdd format?

Thanks for any help.

Bernie Yaeger


 
Reply With Quote
 
 
 
 
W.G. Ryan eMVP
Guest
Posts: n/a
 
      12th Jan 2005
It depends. You can "select" it formatted - or you can bind it formatted.
Is this solely a UI issue or do you need to true value returned?

--
W.G. Ryan MVP (Windows Embedded)

TiBA Solutions
www.tibasolutions.com | www.devbuzz.com | www.knowdotnet.com
"Bernie Yaeger" <(E-Mail Removed)> wrote in message
news:O$MmppE#(E-Mail Removed)...
> How can I select a date column in an Access table such that the select

will
> return a string in yyyymmdd format?
>
> Thanks for any help.
>
> Bernie Yaeger
>
>



 
Reply With Quote
 
Bernie Yaeger
Guest
Posts: n/a
 
      12th Jan 2005
Hi Bill,

Tx for the reply. I'm trying to 'select' it formatted.

Thanks for your help.

Bernie

"W.G. Ryan eMVP" <(E-Mail Removed)> wrote in message
news:ObH%23LFG%(E-Mail Removed)...
> It depends. You can "select" it formatted - or you can bind it formatted.
> Is this solely a UI issue or do you need to true value returned?
>
> --
> W.G. Ryan MVP (Windows Embedded)
>
> TiBA Solutions
> www.tibasolutions.com | www.devbuzz.com | www.knowdotnet.com
> "Bernie Yaeger" <(E-Mail Removed)> wrote in message
> news:O$MmppE#(E-Mail Removed)...
>> How can I select a date column in an Access table such that the select

> will
>> return a string in yyyymmdd format?
>>
>> Thanks for any help.
>>
>> Bernie Yaeger
>>
>>

>
>



 
Reply With Quote
 
Dave Fancher
Guest
Posts: n/a
 
      12th Jan 2005
You could use Access's Format function: Format(<field>, "yyyymmdd")
....but selecting the date in its native format and specifying a format when
it the value is actually used will provide you with more flexibility.

--
Dave Fancher
http://davefancher.blogspot.com


"Bernie Yaeger" <(E-Mail Removed)> wrote in message
news:O$MmppE%(E-Mail Removed)...
> How can I select a date column in an Access table such that the select
> will return a string in yyyymmdd format?
>
> Thanks for any help.
>
> Bernie Yaeger
>
>



 
Reply With Quote
 
Bernie Yaeger
Guest
Posts: n/a
 
      12th Jan 2005
Hi Dave,

Tx for the info - I'll give it a try.

Bernie

"Dave Fancher" <(E-Mail Removed)> wrote in message
news:ffOdnT2VlYBxK3ncRVn-(E-Mail Removed)...
> You could use Access's Format function: Format(<field>, "yyyymmdd")
> ...but selecting the date in its native format and specifying a format
> when it the value is actually used will provide you with more flexibility.
>
> --
> Dave Fancher
> http://davefancher.blogspot.com
>
>
> "Bernie Yaeger" <(E-Mail Removed)> wrote in message
> news:O$MmppE%(E-Mail Removed)...
>> How can I select a date column in an Access table such that the select
>> will return a string in yyyymmdd format?
>>
>> Thanks for any help.
>>
>> Bernie Yaeger
>>
>>

>
>



 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
More Access files with C# and OLEDB provider Eric Kiernan Microsoft C# .NET 5 19th Aug 2009 07:33 PM
oledb date/time insert command format =?Utf-8?B?bWFib25k?= Microsoft VC .NET 5 16th Oct 2006 03:02 PM
Date Type Custom Format Provider? McNutt Consulting Microsoft Dot NET Framework 1 1st Sep 2004 05:12 PM
KB article withdrawn? Access/Jet provider + ADO.NET + OLEDB: expanding database problem Timo Microsoft Access 5 24th Aug 2003 11:19 PM
KB article withdrawn? Access/Jet provider + ADO.NET + OLEDB: expanding database problem Timo Microsoft ADO .NET 7 24th Aug 2003 11:19 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 01:17 PM.