Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Formatting a date

Status
Not open for further replies.

slickp

Technical User
Feb 15, 2006
35
GB
Hi, i have a formula below:

totext(dateadd("d",6,{table.date}-dayofweek({table.date})+1),"dd/MM/yyyy")

However i would like the date to formatted into say "02 January 2007" rather than "02/01/2007" which is what i've got. How can i change the formula above to show the date in the formatting i want.

Cheers
 
totext(dateadd("d",6,{DonHierarchyTest1_19.Effective Date}-dayofweek({DonHierarchyTest1_19.Effective Date})+1),"dd MMMM yyyy")

Thanks so much!
satinsilhouette
 
Or don't bother converting it to text, just use:

dateadd("d",6,{table.date}-dayofweek({table.date})+1)

Now right click the field and select format field and select the format you'd like under custom.

-k
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top