Staff Ash Posted June 26, 2023 Staff Share Posted June 26, 2023 Apps: Publisher Platforms: All For any date fields you can now apply your own custom formats to them. For example below a current date & time field has been added. If you right click on the field / long press on iPad and choose "Edit Field" you will now have the option to switch between preset formats, or include your own custom format: There is a lot of flexibility available, the full list of format date field characters available is below: Symbol Meaning Pattern Example Output Notes G era designator G, GG, or GGGGGGGGGGGG AD Anno Domini A y year yyy or yyyy 23 2023 Q quarter QQQQQQQQQQQQQQQ 2 02 Q2 2nd quarter 2 M month in year MMMMMMMMMMMMMMM 9 09 Sep September S L stand-alone month in year LLLLLLLLLLLLLLL 9 09 Sep September S Some languages depending on the context will require a different spelling of the month. These can be accessed using these. For example in Polish MMMM will give you lipca for July, but LLLL will give lipiec. w week of year w 27 W week of month W 2 d day in month ddd 2 02 D day of year D 184 F day of week in month F 2 (2nd Wed in July) E day of week E, EE, or EEEEEEEEEEEEEEEEEE Tue Tuesday T Tu e local day of week e or eeeeeeeeeeeeeeeeeeee 2 Tue Tuesday T Tu i.e in the US a Monday will be 2, as a week starts on Sunday. Where as in the UK a Monday will be 1 as the week starts on Monday a AM or PM a, aa, or aaaaaaaa PM p B Flexible time periods B, BB, BBB,BBBB or BBBBB at night i.e in the morning/in the afternoon/at night/noon h hour in am/pm (1~12) hhh 1 or 12 01 or 12 H hour in day (0~23) HHH 0 or 23 00 or 23 k hour in day (1~24) kkk 1 or 24 01 or 24 K hour in am/pm (0~11) KKK 0 or 11 00 or 11 m minute in hour mmm 8 or 59 08 or 59 s second in minute sss 5 or 59 05 or 59 z Short/Long Timezone z, zz, or zzzzzzz BST British Summer Time O Time Zone: short localized GMT Time Zone: long localized GMT OOOOO GMT-8 GMT-08:00 V Time Zone: short time zone ID Time Zone: long time zone ID Time Zone: time zone exemplar city Time Zone: generic location VVVVVVVVVV gblon Europe/London London United Kingdom Time x Time Zone: ISO8601 basic hm Time Zone: ISO8601 basic hm Time Zone: ISO8601 extended hm xxxxxx +01, -0930 +0100, -0930 ' escape for text 'Today is' EEEE Today is Tuesday Must surround the text you wish to input with apostrophes ' ' two single quotes produce one 'Today''s date is' dd/MM/yyyy Today’s date is 03/07/2023 eartner, aleale1, Petar Petrenko and 10 others 6 7 Quote Managing Director Help make our apps better by joining our beta program! MacBook Pro (16-inch, 2021) / Apple M1 Max / 64GB / macOS 12.0.1 iPad Pro 11-inch 3rd Gen / iPadOS 16.2 Link to comment Share on other sites More sharing options...
Petar Petrenko Posted July 3, 2023 Share Posted July 3, 2023 Sorry, but IMO it would be more logical if you switch these patterns: hour in am/pm (0~11) to be H, HH; and hour in day (0~23) to be K, KK Quote All the latest releases of Designer, Photo and Publisher (retail and beta) on MacOS and Windows. 15” Dell Inspiron 7559 i7 ● Windows 10 x64 Pro ● Intel Core i7-6700HQ (3.50 GHz, 6M) ● 16 GB Dual Channel DDR3L 1600 MHz (8GBx2) ● NVIDIA GeForce GTX 960M 4 GB GDDR5 ● 500 GB SSD + 1 TB HDD ● UHD (3840 x 2160) Truelife LED - Backlit Touch Display 32” LG 32UN650-W display ● 3840 x 2160 UHD, IPS, HDR10 ● Color Gamut: DCI-P3 95%, Color Calibrated ● 2 x HDMI, 1 x DisplayPort 13.3” MacBook Pro (2017) ● Ventura 13.6 ● Intel Core i7 (3.50 GHz Dual Core) ● 16 GB 2133 MHz LPDDR3 ● Intel Iris Plus Graphics 650 1536 MB ● 500 GB SSD ● Retina Display (3360 x 2100) Link to comment Share on other sites More sharing options...
Staff Ash Posted July 3, 2023 Author Staff Share Posted July 3, 2023 Understand your point, but actually we have adopted the unicode standard for this (https://unicode-org.github.io/icu/userguide/format_parse/datetime/) and will want to keep them aligned... Petar Petrenko 1 Quote Managing Director Help make our apps better by joining our beta program! MacBook Pro (16-inch, 2021) / Apple M1 Max / 64GB / macOS 12.0.1 iPad Pro 11-inch 3rd Gen / iPadOS 16.2 Link to comment Share on other sites More sharing options...
OliverJ Posted July 3, 2023 Share Posted July 3, 2023 Awesome!, thank you.. Quote Link to comment Share on other sites More sharing options...
Hangman Posted July 3, 2023 Share Posted July 3, 2023 Hi @Ash, I'm assuming the Unicode standard isn't fully ISO 8601-2 compliant, if so that would explain a few discrepancies between the two so just wanted to confirm, though I appreciate the Unicode implementation is via a set of C/C++ and Java libraries so must be correct... Quote Affinity Designer 2.5.5 | Affinity Photo 2.5.5 | Affinity Publisher 2.5.5 MacBook Pro M3 Max, 36 GB Unified Memory, macOS Sonoma 14.6.1, Magic Mouse HP ENVY x360, 8 GB RAM, AMD Ryzen 5 2500U, Windows 10 Home, Logitech Mouse Link to comment Share on other sites More sharing options...
Staff Mark Daniel Posted July 3, 2023 Staff Share Posted July 3, 2023 Specifically the data comes from the Unicode CLDR data set as described here https://www.unicode.org/reports/tr35/tr35-dates.html#Date_Field_Symbol_Table Quote Link to comment Share on other sites More sharing options...
Hangman Posted July 3, 2023 Share Posted July 3, 2023 Hi @Mark Daniel and @Ash Thanks for the link, so it references ISO 8601 for time zone formats but the standard itself isn't ISO 8601-2 compliant. It does, however, explain the different values I see when entering either 'e' or 'ee' based on the language selector in the Field Formatting dialog, i.e., 1, 2 or 3 or (01, 02 or 03) for Monday... <firstDay day="mon" territories="001" /> <firstDay day="fri" territories="BD MV" /> <firstDay day="sat" territories="AE AF BH DJ DZ EG IQ IR JO …" /> I noticed there are some omissions in the list of Affinity-supported Unicode entries, is this on purpose or are they supported but not listed, e.g. 'b' (a time specific one to test unless I change the time on my Mac which I'm a bit reluctant to do in case it impacts file creation times). It would certainly be handy to have the option of 'noon' and 'midnight' to differentiate between am, pm, noon and midnight because am and pm are so frequently misused when describing noon and midnight. Could I make a request that 'b' is included/added to the list? 🙏 Quote Affinity Designer 2.5.5 | Affinity Photo 2.5.5 | Affinity Publisher 2.5.5 MacBook Pro M3 Max, 36 GB Unified Memory, macOS Sonoma 14.6.1, Magic Mouse HP ENVY x360, 8 GB RAM, AMD Ryzen 5 2500U, Windows 10 Home, Logitech Mouse Link to comment Share on other sites More sharing options...
Hangman Posted July 3, 2023 Share Posted July 3, 2023 Could I also make a request that the Field Formatting window is expandable in size, at least in width, as it becomes impossible to see the Pattern entry once it becomes longer than the text entry box... Quote Affinity Designer 2.5.5 | Affinity Photo 2.5.5 | Affinity Publisher 2.5.5 MacBook Pro M3 Max, 36 GB Unified Memory, macOS Sonoma 14.6.1, Magic Mouse HP ENVY x360, 8 GB RAM, AMD Ryzen 5 2500U, Windows 10 Home, Logitech Mouse Link to comment Share on other sites More sharing options...
Old Bruce Posted July 3, 2023 Share Posted July 3, 2023 41 minutes ago, Hangman said: It would certainly be handy to have the option of 'noon' and 'midnight' to differentiate between am, pm, noon and midnight because am and pm are so frequently misused when describing noon and midnight. This confused me until I recently realized that 12 is actually zero. 11:59 pm, 12:00 (0:00) am. Hangman 1 Quote Mac Pro (Late 2013) Mac OS 12.7.6 Affinity Designer 2.5.5 | Affinity Photo 2.5.5 | Affinity Publisher 2.5.5 | Beta versions as they appear. I have never mastered color management, period, so I cannot help with that. Link to comment Share on other sites More sharing options...
Mithferion Posted July 3, 2023 Share Posted July 3, 2023 14 minutes ago, Old Bruce said: This confused me until I recently realized that 12 is actually zero. 11:59 pm, 12:00 (0:00) am. Since working at night as IT Support, all I can think of is from 00:00 to 23:59 h. No more am or pm for me, haha. Best regards! Hangman 1 Quote AMD FX 8350 :: Radeon HD 5670 :: Windows 10 :: http://mithferion.deviantart.com/ Oxygen Icons :: GCP Icons :: iOS 11 Design Resources :: iOS App Icon Template :: Free Quality Fonts (Commercial Use) :: Public Domain Images How to do High Quality Art :: Mesh Warp / Distort Tool Considerations :: Select Same / Object - Suggestions :: Live Glassmorphism Effect Link to comment Share on other sites More sharing options...
Hangman Posted July 3, 2023 Share Posted July 3, 2023 1 minute ago, Old Bruce said: This confused me until I recently realized that 12 is actually zero. 11:59 pm, 12:00 (0:00) am. The main issue comes when people use the 12-hour clock, people will say 12 pm when referring to 'noon' and 12 am when referring to 'midnight'. While it has sort of become a convention, it is technically incorrect. At exactly 12 noon, the Sun is at its highest point in the sky and directly over the meridian. It is, therefore, neither 'ante' (am) nor 'post' (pm) meridian. At 12 midnight it is also neither am nor pm, so, for the avoidance of doubt, it is technically correct to say 12 noon or 12 midnight or just 'noon' and 'midnight'. You also have the issue of midnight itself, if someone says, midnight on July 4th, are they referring to the start or end of the day, generally it is considered to be at the start of a new day, i.e. 00:00. Obviously using the 24-hour clock avoids a lot of these issues, 12:00 is noon and 00:00 (or 24:00) is midnight but you'd be amazed how often I see people write 18:30 pm or similar when am and pm aren't used with the 24-hour clock, it's technically 18:30 hrs. Mithferion 1 Quote Affinity Designer 2.5.5 | Affinity Photo 2.5.5 | Affinity Publisher 2.5.5 MacBook Pro M3 Max, 36 GB Unified Memory, macOS Sonoma 14.6.1, Magic Mouse HP ENVY x360, 8 GB RAM, AMD Ryzen 5 2500U, Windows 10 Home, Logitech Mouse Link to comment Share on other sites More sharing options...
Petar Petrenko Posted July 3, 2023 Share Posted July 3, 2023 37 minutes ago, Hangman said: you'd be amazed how often I see people write 18:30 pm or similar when am and pm aren't used with the 24-hour clock, it's technically 18:30 hrs. You would be even more amazed when you hear people saying 6:30 when it is actually 18:30. It is not hard to distinguish if it is 6:30 at morning or at afternoon if you live in central or southern Europe, but if you live in far north countries where they have white nights -- it is not clear at all. Quote All the latest releases of Designer, Photo and Publisher (retail and beta) on MacOS and Windows. 15” Dell Inspiron 7559 i7 ● Windows 10 x64 Pro ● Intel Core i7-6700HQ (3.50 GHz, 6M) ● 16 GB Dual Channel DDR3L 1600 MHz (8GBx2) ● NVIDIA GeForce GTX 960M 4 GB GDDR5 ● 500 GB SSD + 1 TB HDD ● UHD (3840 x 2160) Truelife LED - Backlit Touch Display 32” LG 32UN650-W display ● 3840 x 2160 UHD, IPS, HDR10 ● Color Gamut: DCI-P3 95%, Color Calibrated ● 2 x HDMI, 1 x DisplayPort 13.3” MacBook Pro (2017) ● Ventura 13.6 ● Intel Core i7 (3.50 GHz Dual Core) ● 16 GB 2133 MHz LPDDR3 ● Intel Iris Plus Graphics 650 1536 MB ● 500 GB SSD ● Retina Display (3360 x 2100) Link to comment Share on other sites More sharing options...
jussi Posted July 3, 2023 Share Posted July 3, 2023 out of curiousity, but what is the purpose of kK format? I've probably never seen this used thanks Quote Link to comment Share on other sites More sharing options...
Hangman Posted July 3, 2023 Share Posted July 3, 2023 4 minutes ago, Petar Petrenko said: You would be even more amazed when you hear people saying 6:30 when it is actually 18:30. It is not hard to distinguish if it is 6:30 at morning or at afternoon if you live in central or southern Europe, but if you live in far north countries where they have white nights -- it is not clear at all. Then of course you have the Dutch and the Germans where half-nine means half-an-hour-before-nine-o’clock (i.e., 08:30) but to us Brits it means half-an-hour-after-nine-o’clock (i.e. 09:30) so we end up arriving an hour late for our meeting... Petar Petrenko 1 Quote Affinity Designer 2.5.5 | Affinity Photo 2.5.5 | Affinity Publisher 2.5.5 MacBook Pro M3 Max, 36 GB Unified Memory, macOS Sonoma 14.6.1, Magic Mouse HP ENVY x360, 8 GB RAM, AMD Ryzen 5 2500U, Windows 10 Home, Logitech Mouse Link to comment Share on other sites More sharing options...
Hangman Posted July 3, 2023 Share Posted July 3, 2023 6 minutes ago, jussi said: out of curiousity, but what is the purpose of kK format? I've probably never seen this used 'k' and 'kk' = 24-hour clock 'K' and 'KK' = 12-hour clock Quote Affinity Designer 2.5.5 | Affinity Photo 2.5.5 | Affinity Publisher 2.5.5 MacBook Pro M3 Max, 36 GB Unified Memory, macOS Sonoma 14.6.1, Magic Mouse HP ENVY x360, 8 GB RAM, AMD Ryzen 5 2500U, Windows 10 Home, Logitech Mouse Link to comment Share on other sites More sharing options...
jussi Posted July 3, 2023 Share Posted July 3, 2023 thanks, but that's what I thought about hH format. I don't understand difference between hH and kK Quote Link to comment Share on other sites More sharing options...
Petar Petrenko Posted July 3, 2023 Share Posted July 3, 2023 3 minutes ago, Hangman said: Then of course you have the Dutch and the Germans where half-nine means half-an-hour-before-nine-o’clock (i.e., 08:30) In this category belongs all ex-YU countries except Macedonia (Serbia, Croatia, Bosnia and Herzegovina, Slovenia and Montenegro). Hangman 1 Quote All the latest releases of Designer, Photo and Publisher (retail and beta) on MacOS and Windows. 15” Dell Inspiron 7559 i7 ● Windows 10 x64 Pro ● Intel Core i7-6700HQ (3.50 GHz, 6M) ● 16 GB Dual Channel DDR3L 1600 MHz (8GBx2) ● NVIDIA GeForce GTX 960M 4 GB GDDR5 ● 500 GB SSD + 1 TB HDD ● UHD (3840 x 2160) Truelife LED - Backlit Touch Display 32” LG 32UN650-W display ● 3840 x 2160 UHD, IPS, HDR10 ● Color Gamut: DCI-P3 95%, Color Calibrated ● 2 x HDMI, 1 x DisplayPort 13.3” MacBook Pro (2017) ● Ventura 13.6 ● Intel Core i7 (3.50 GHz Dual Core) ● 16 GB 2133 MHz LPDDR3 ● Intel Iris Plus Graphics 650 1536 MB ● 500 GB SSD ● Retina Display (3360 x 2100) Link to comment Share on other sites More sharing options...
walt.farrell Posted July 3, 2023 Share Posted July 3, 2023 11 minutes ago, jussi said: but what is the purpose of kK format? There is no kK (lower-case k, upper-case K) format. It's kk or KK (and hh or HH, not hH). I think you're asking about the difference between h and H or k and K. h and k start at 1: 1-12 or 1-24. H and K start at 0: 0-11 or 0-23 Hangman 1 Quote -- Walt Designer, Photo, and Publisher V1 and V2 at latest retail and beta releases PC: Desktop: Windows 11 Pro 23H2, 64GB memory, AMD Ryzen 9 5900 12-Core @ 3.00 GHz, NVIDIA GeForce RTX 3090 Laptop: Windows 11 Pro 23H2, 32GB memory, Intel Core i7-10750H @ 2.60GHz, Intel UHD Graphics Comet Lake GT2 and NVIDIA GeForce RTX 3070 Laptop GPU. Laptop 2: Windows 11 Pro 24H2, 16GB memory, Snapdragon(R) X Elite - X1E80100 - Qualcomm(R) Oryon(TM) 12 Core CPU 4.01 GHz, Qualcomm(R) Adreno(TM) X1-85 GPU iPad: iPad Pro M1, 12.9": iPadOS 17.6.1, Apple Pencil 2, Magic Keyboard Mac: 2023 M2 MacBook Air 15", 16GB memory, macOS Sonoma 14.6.1 Link to comment Share on other sites More sharing options...
jussi Posted July 3, 2023 Share Posted July 3, 2023 6 minutes ago, walt.farrell said: There is no kK (lower-case k, upper-case K) format. It's kk or KK (and hh or HH, not hH). I think you're asking about the difference between h and H or k and K. h and k start at 1: 1-12 or 1-24. H and K start at 0: 0-11 or 0-23 so back to my question, what is the purpose to start hours at 1, instead of 0? is there 24:45 time used somewhere? Quote Link to comment Share on other sites More sharing options...
Hangman Posted July 3, 2023 Share Posted July 3, 2023 6 minutes ago, jussi said: so back to my question, what is the purpose to start hours at 1, instead of 0? is there 24:45 time used somewhere? PaulEC 1 Quote Affinity Designer 2.5.5 | Affinity Photo 2.5.5 | Affinity Publisher 2.5.5 MacBook Pro M3 Max, 36 GB Unified Memory, macOS Sonoma 14.6.1, Magic Mouse HP ENVY x360, 8 GB RAM, AMD Ryzen 5 2500U, Windows 10 Home, Logitech Mouse Link to comment Share on other sites More sharing options...
Petar Petrenko Posted July 3, 2023 Share Posted July 3, 2023 46 minutes ago, Petar Petrenko said: In this category belongs all ex-YU countries except Macedonia (Serbia, Croatia, Bosnia and Herzegovina, Slovenia and Montenegro). What is even more interesting, for 6:30 or 18:30 they literally say "half seven". There is no word that explains if it is 30 minutes before or after seven o'clock. Quote All the latest releases of Designer, Photo and Publisher (retail and beta) on MacOS and Windows. 15” Dell Inspiron 7559 i7 ● Windows 10 x64 Pro ● Intel Core i7-6700HQ (3.50 GHz, 6M) ● 16 GB Dual Channel DDR3L 1600 MHz (8GBx2) ● NVIDIA GeForce GTX 960M 4 GB GDDR5 ● 500 GB SSD + 1 TB HDD ● UHD (3840 x 2160) Truelife LED - Backlit Touch Display 32” LG 32UN650-W display ● 3840 x 2160 UHD, IPS, HDR10 ● Color Gamut: DCI-P3 95%, Color Calibrated ● 2 x HDMI, 1 x DisplayPort 13.3” MacBook Pro (2017) ● Ventura 13.6 ● Intel Core i7 (3.50 GHz Dual Core) ● 16 GB 2133 MHz LPDDR3 ● Intel Iris Plus Graphics 650 1536 MB ● 500 GB SSD ● Retina Display (3360 x 2100) Link to comment Share on other sites More sharing options...
Mithferion Posted July 3, 2023 Share Posted July 3, 2023 1 hour ago, Petar Petrenko said: What is even more interesting, for 6:30 or 18:30 they literally say "half seven". There is no word that explains if it is 30 minutes before or after seven o'clock. In Mexico, we would say "cuarto para las siete" to say "15 minutes before 7", or "veinte para las siete" to say "20 minutes before 7". Just as a minor curiosity. For what you mention, we would only say "a la media" (at half an hour) but only when both parties know what hour we are talking about. Following your example, it'd be 19:30 h. Best regards! Quote AMD FX 8350 :: Radeon HD 5670 :: Windows 10 :: http://mithferion.deviantart.com/ Oxygen Icons :: GCP Icons :: iOS 11 Design Resources :: iOS App Icon Template :: Free Quality Fonts (Commercial Use) :: Public Domain Images How to do High Quality Art :: Mesh Warp / Distort Tool Considerations :: Select Same / Object - Suggestions :: Live Glassmorphism Effect Link to comment Share on other sites More sharing options...
Staff Sean P Posted July 4, 2023 Staff Share Posted July 4, 2023 16 hours ago, Hangman said: I noticed there are some omissions in the list of Affinity-supported Unicode entries, is this on purpose or are they supported but not listed, e.g. 'b' (a time specific one to test unless I change the time on my Mac which I'm a bit reluctant to do in case it impacts file creation times). It would certainly be handy to have the option of 'noon' and 'midnight' to differentiate between am, pm, noon and midnight because am and pm are so frequently misused when describing noon and midnight. Could I make a request that 'b' is included/added to the list? 🙏 I did edit the list down to be a little more concise, and also because some of the options relate to specific calendars that are not currently usable in app (such as the Chinese Lunar Calendar). bbbb is responding a bit weirdly currently for me on both macOS and Windows. Setting my machine's time to 12:00 correctly gives me noon when I insert 'Current Date and Time' however setting 00:00 is currently giving am. Quote Link to comment Share on other sites More sharing options...
Hangman Posted July 4, 2023 Share Posted July 4, 2023 Hi @Sean P, I'm seeing the same, noon is correctly shown but instead of midnight, I'm seeing, e.g., 5 July 2023, 00:00 am which is clearly wrong... That makes sense about cutting the list and removing options that are not supported in the apps, thanks for clarifying, though I guess 'b' should be included on the list because: It is functional It performs a different function to both 'a' and 'B' Quote Affinity Designer 2.5.5 | Affinity Photo 2.5.5 | Affinity Publisher 2.5.5 MacBook Pro M3 Max, 36 GB Unified Memory, macOS Sonoma 14.6.1, Magic Mouse HP ENVY x360, 8 GB RAM, AMD Ryzen 5 2500U, Windows 10 Home, Logitech Mouse Link to comment Share on other sites More sharing options...
MikeTO Posted September 4, 2023 Share Posted September 4, 2023 Hi, I'm late to the date formatting party but I tried all the formats today in English US, UK, Canada, and Australia and found a few small issues. I can't get k/K to work in any language. If it's 6 pm and I enter "h H k K" I get "6 18 18 6". Should it give me "6 18 19 7"? For "z" (lowercase) and language set to English UK I get GMT+1 instead of BST and GMT-4 instead of EDT. For English US or Canada it gives me BST or EDT as stated in the help file. Is UK English supposed to work that way? The formatting window for date & time (the general one, not the created, saved, or printed ones) has an Update button when opened in a dialog from the context menu but for me it does nothing. Also, should the button be included in the popup version opened from the panel? The help page for "B" states" Possible values are in the morning, noon, in the afternoon and at night." The list is missing "in the evening". The help page for "x" states that x will result in +01, -0930 but it actually results in just +01. I don't think that the code is wrong, but the unicode and iso documentation is confusing. It might be worth noting in the help page that non-alpha characters don't need to be enclosed in apostrophes. On 7/3/2023 at 1:39 PM, jussi said: so back to my question, what is the purpose to start hours at 1, instead of 0? is there 24:45 time used somewhere? I believe this (k) is for referring to 00:30 as the 1st hour of the day and 11:30pm as the 24th hour. Cheers Quote Download a free PDF manual for Affinity Publisher 2.5 Download a quick reference chart for Affinity's Special Characters Affinity 2.5 for macOS Sonoma 14.6.1, MacBook Pro 14" (M1 Pro) Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.