dbTalk Databases Forums  

date

comp.databases.ms-access comp.databases.ms-access


Discuss date in the comp.databases.ms-access forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
kevcar40
 
Posts: n/a

Default date - 12-07-2009 , 05:17 AM






Hi
I have a form that start on open
i would like to show the current date in Day(text), date(number),
month(text), year(number)
i'e Monday, 7, December, 2009

i am trying to put this value in an unbound textbox


how do i format the date to display

thanks

kevin

Reply With Quote
  #2  
Old   
Roger
 
Posts: n/a

Default Re: date - 12-07-2009 , 06:27 AM






On Dec 7, 4:17*am, kevcar40 <kevca... (AT) btinternet (DOT) com> wrote:
Quote:
Hi
I have *a form that start on open
i would like to show the current date in *Day(text), date(number),
month(text), year(number)
* i'e Monday, 7, December, 2009

i am trying to put this value in an unbound textbox

how do i format the date to display

thanks

kevin
look at the FORMAT function's, second parameter
ie. format(date, "various patterns go here")

Reply With Quote
  #3  
Old   
fredg
 
Posts: n/a

Default Re: date - 12-07-2009 , 11:09 AM



On Mon, 7 Dec 2009 03:17:02 -0800 (PST), kevcar40 wrote:

Quote:
Hi
I have a form that start on open
i would like to show the current date in Day(text), date(number),
month(text), year(number)
i'e Monday, 7, December, 2009

i am trying to put this value in an unbound textbox

how do i format the date to display

thanks

kevin
As the control source of an unbound control write:
=Date()
Then set the Format property of the control to
dddd, d, mmmm, yyyy

Are you sure you want all those commas in there?

--
Fred
Please respond only to this newsgroup.
I do not reply to personal e-mail

Reply With Quote
  #4  
Old   
Richard Cooke
 
Posts: n/a

Default Re: date - 12-21-2009 , 08:41 AM



"kevcar40" <kevcar40 (AT) btinternet (DOT) com> wrote

Quote:
Hi
I have a form that start on open
i would like to show the current date in Day(text), date(number),
month(text), year(number)
i'e Monday, 7, December, 2009

i am trying to put this value in an unbound textbox


how do i format the date to display

thanks

kevin
Kevin,

I have used the following VB code and created in an On Timer event I have a
label field named lblclock.

Private Sub Form_Timer()
Me!lblclock.Caption = Format(Now, "dddd, mmm d yyyy, hh:mm:ss AMPM")
End Sub

This display as shown here

Monday, Dec 21 2009, 02:40:37 PM

Hope this may be of some help.

Regards

Richard Cooke

Reply With Quote
Reply




Thread Tools
Display Modes

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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.