Newbies yourbrain Posted October 30, 2006 Newbies Posted October 30, 2006 I have date fields where I applied custom formatting for the date to display as follows Fri, 11 Nov 10 2006 But whenever I reference it in a text field it displays as 11/10/2006. How do I make it display Fri, 11 Nov 10 2006 in the text field it is referenced? Thanks in advance :P
John Mark Osborne Posted October 30, 2006 Posted October 30, 2006 I'm not sure there is any way to reference the formatted date format through a calculation without writing an extensive formula. Why do you want to do this? There might be another solution.
comment Posted October 30, 2006 Posted October 30, 2006 The easy way is to use a merge field instead. If you absolutely need to have it in a calculation, you will have to do the formatting as part of the formula, e.g. Left ( DayName ( Datefield ) , 3 ) & ", " & Left ( MonthName ( Datefield ) , 3 ) & " " & Day ( Datefield ) & " " & Year ( Datefield )
Newbies yourbrain Posted October 30, 2006 Author Newbies Posted October 30, 2006 thanks comment, this is exactly what I needed :P
The Shadow Posted October 31, 2006 Posted October 31, 2006 If you're using 8.5, you can also use a calc like: GetLayoutObjectAttribute( "dateField"; "Content" ) where you've named your layout object "dateField" to get the date with all the formatting preserved.
Recommended Posts
This topic is 6660 days old. Please don't post here. Open a new topic instead.
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now