@@ -177,141 +177,75 @@ All the changes to the Inspections app are completed. The app can now be publish
177
177
178
178
``` powerapps-dot
179
179
If(
180
-
181
- DateDiff(
182
-
183
- Date(
184
-
185
- Year(galInspections.Selected.createdon),
186
-
187
- Month(galInspections.Selected.createdon),
188
-
189
- Day(galInspections.Selected.createdon)
190
-
191
- ),
192
-
193
- Today(),
194
-
195
- Days
196
-
197
- ) = 0,
198
-
180
+ DateDiff(
181
+ Date(
182
+ Year(galInspections.Selected.createdon),
183
+ Month(galInspections.Selected.createdon),
184
+ Day(galInspections.Selected.createdon)
185
+ ),
186
+ Today(),
187
+ Days
188
+ ) = 0,
199
189
If(
200
-
201
- DateDiff(
202
-
203
- Date(
204
-
205
- Year(galInspections.Selected.createdon),
206
-
207
- Month(galInspections.Selected.createdon),
208
-
209
- Day(galInspections.Selected.createdon)
210
-
211
- ),
212
-
213
- Today(),
214
-
215
- Hours
216
-
217
- ) \> 0,
218
-
219
- galInspections.Selected.Store.Name & " \| Submitted by " &
220
- galInspections.Selected.createdby.'Full Name' & ", " & DateDiff(
221
-
222
- Date(
223
-
224
- Year(galInspections.Selected.createdon),
225
-
226
- Month(galInspections.Selected.createdon),
227
-
228
- Day(galInspections.Selected.createdon)
229
-
230
- ),
231
-
232
- Today(),
233
-
234
- Hours
235
-
236
- ) & " hrs ago",
237
-
190
+ DateDiff(
191
+ Date(
192
+ Year(galInspections.Selected.createdon),
193
+ Month(galInspections.Selected.createdon),
194
+ Day(galInspections.Selected.createdon)
195
+ ),
196
+ Today(),
197
+ Hours
198
+ ) \> 0,
199
+ galInspections.Selected.Store.Name & " \| Submitted by " &
200
+ galInspections.Selected.createdby.'Full Name' & ", " & DateDiff(
201
+ Date(
202
+ Year(galInspections.Selected.createdon),
203
+ Month(galInspections.Selected.createdon),
204
+ Day(galInspections.Selected.createdon)
205
+ ),
206
+ Today(),
207
+ Hours
208
+ ) & " hrs ago",
238
209
If(
239
-
240
- DateDiff(
241
-
242
- Date(
243
-
244
- Year(galInspections.Selected.createdon),
245
-
246
- Month(galInspections.Selected.createdon),
247
-
248
- Day(galInspections.Selected.createdon)
249
-
250
- ),
251
-
252
- Today(),
253
-
254
- Hours
255
-
256
- ) = 0,
257
-
210
+ DateDiff(
211
+ Date(
212
+ Year(galInspections.Selected.createdon),
213
+ Month(galInspections.Selected.createdon),
214
+ Day(galInspections.Selected.createdon)
215
+ ),
216
+ Today(),
217
+ Hours
218
+ ) = 0,
258
219
//"minutes ago"
259
-
260
220
galInspections.Selected.Store.Name & " \| Submitted by " &
261
221
galInspections.Selected.createdby.'Full Name' & ", minutes ago"
262
-
263
222
,
264
-
265
223
If(
266
-
267
- DateDiff(
268
-
269
- Date(
270
-
271
- Year(galInspections.Selected.createdon),
272
-
273
- Month(galInspections.Selected.createdon),
274
-
275
- Day(galInspections.Selected.createdon)
276
-
277
- ),
278
-
279
- Today(),
280
-
281
- Days
282
-
283
- ) = 1,
284
-
224
+ DateDiff(
225
+ Date(
226
+ Year(galInspections.Selected.createdon),
227
+ Month(galInspections.Selected.createdon),
228
+ Day(galInspections.Selected.createdon)
229
+ ),
230
+ Today(),
231
+ Days
232
+ ) = 1,
285
233
//"yesterday",
286
-
287
234
galInspections.Selected.Store.Name & " \| Submitted by " &
288
235
galInspections.Selected.createdby.'Full Name' & ", yesterday",
289
-
290
236
galInspections.Selected.Store.Name & " \| Submitted by " &
291
237
galInspections.Selected.createdby.'Full Name' & ", " & DateDiff(
292
-
293
238
Date(
294
-
295
- Year(galInspections.Selected.createdon),
296
-
297
- Month(galInspections.Selected.createdon),
298
-
299
- Day(galInspections.Selected.createdon)
300
-
301
- ),
302
-
239
+ Year(galInspections.Selected.createdon),
240
+ Month(galInspections.Selected.createdon),
241
+ Day(galInspections.Selected.createdon)
242
+ ),
303
243
Today(),
304
-
305
244
Days
306
-
307
245
) & " days ago"
308
-
309
246
)
310
-
311
247
)
312
-
313
248
)
314
-
315
249
)
316
250
```
317
251
0 commit comments