Ron Cates Posted April 20, 2010 Posted April 20, 2010 Hi all, A quick one. I am printing the date using Get(CurrentDate) . I would like it to read April 20th 2010 rather than 4/20/2010. How do I do it? Thanks
LaRetta Posted April 20, 2010 Posted April 20, 2010 (edited) If it is just for printing, select your date field in layout mode and go to Format > Date and specify your settings there. YOu are using Get ( CurrentDate)? You can place // on your layout and format the current date using the above technique. Edited April 20, 2010 by Guest
Ron Cates Posted April 20, 2010 Author Posted April 20, 2010 I am using it to create a templete for a letter. I have a script that populates a field with the contents of the letter including the date which I get using Get ( CurrentDate). So when populating a field with Get ( CurrentDate) is it possible to format it the way I would like?
LaRetta Posted April 20, 2010 Posted April 20, 2010 Set your field with this calculation: Let ( [ dte = Get ( CurrentDate ) ; y = Year ( dte ) ; m = MonthName ( dte) ; d = Day ( dte ) ] ; m & " " & d & ", " & y )
Newbies Adan Daroski Posted April 22, 2010 Newbies Posted April 22, 2010 Format formatter; // The year formatter = new SimpleDateFormat("yy"); // 02 formatter = new SimpleDateFormat("yyyy"); // 2002 // The month formatter = new SimpleDateFormat("M"); // 1 formatter = new SimpleDateFormat("MM"); // 01 formatter = new SimpleDateFormat("MMM"); // Jan formatter = new SimpleDateFormat("MMMM"); // January // The day formatter = new SimpleDateFormat("d"); // 9 formatter = new SimpleDateFormat("dd"); // 09 // The day in week formatter = new SimpleDateFormat("E"); // Wed formatter = new SimpleDateFormat("EEEE"); // Wednesday // Get today's date Date date = new Date(); // Some examples formatter = new SimpleDateFormat("MM/dd/yy"); String s = formatter.format(date); // 01/09/02 formatter = new SimpleDateFormat("dd-MMM-yy"); s = formatter.format(date); // 29-Jan-02 // Examples with date and time; see also // Formatting the Time Using a Custom Format formatter = new SimpleDateFormat("yyyy.MM.dd.HH.mm.ss"); s = formatter.format(date); // 2002.01.29.08.36.33 formatter = new SimpleDateFormat("E, dd MMM yyyy HH:mm:ss Z"); s = formatter.format(date); // Tue, 09 Jan 2002 22:14:02 -0500 Thanks __________ Techstore are specialists in a range of Business Cards Printing Services.
Recommended Posts
This topic is 5330 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