Skip to content

Commit d48c234

Browse files
authored
Merge pull request #10870 from TimvanSteenbergen/patch-142313
Update parse-and-format-date-function-calls.md
2 parents 5bd0290 + 903615d commit d48c234

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

content/en/docs/refguide/modeling/application-logic/expressions/parse-and-format-date-function-calls.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -179,10 +179,10 @@ the output is:
179179
'Sun, 8 Jun 2008 10:12:01 +0200'
180180
```
181181

182-
To get a format like `'2008-06-08T10:12:01'`, you need to concatenate two formatDateTime[UTC] functions:
182+
To get a format like `'2008-06-08T10:12:01'`, you can escape the T with `''`:
183183

184184
```java
185-
formatDateTime($object/Date1,'yyyy-MM-dd') + 'T' + formatDateTime($object/Date1,'HH:mm:ss')
185+
formatDateTime($object/Date1,'yyyy-MM-dd''T''HH:mm:ss')
186186
```
187187

188188
## `formatTime[UTC]` {#formatTime}

content/en/docs/refguide10/modeling/application-logic/expressions/parse-and-format-date-function-calls.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -187,10 +187,10 @@ the output is:
187187
'Sun, 8 Jun 2008 10:12:01 +0200'
188188
```
189189

190-
To get a format like `'2008-06-08T10:12:01'`, you need to concatenate two formatDateTime[UTC] functions:
190+
To get a format like `'2008-06-08T10:12:01'`, you can escape the T with `''`:
191191

192192
```java
193-
formatDateTime($object/Date1,'yyyy-MM-dd') + 'T' + formatDateTime($object/Date1,'HH:mm:ss')
193+
formatDateTime($object/Date1,'yyyy-MM-dd''T''HH:mm:ss')
194194
```
195195

196196
## `formatTime[UTC]` {#formatTime}

0 commit comments

Comments
 (0)