Please be so kind as to read my full post before responding.
Thank you for your consideration.
As a preparation for a PowerApps workshop, I (re)did the current "App in a Day lab" excercises.
http://aka.ms/appinaday
In lesson 2
PAHandsOnLabContent\02-Common Data Service for Apps Lab Manual.pdf
I noticed that the default, standard, unmodified, Display Form for a CDS DateOnly field still shows a time as well, and the data type seems to DateTime.
The result looks like this, including a time:
As far as I understand, according to the course pdf, I should be getting a pure date field instead:
The field is set up as DateOnly
The used display form is, as mentioned, unmodified, with data cards still locked
Session ID: 279a5d39-9033-46ce-9d22-290657c53648
PowerApps 3.19042.26
My question:
Solved! Go to Solution.
Hi @SaWu
If you unlock the Label for the date (DataCardValue25 in this case) and change its value to:
Text( DateTimeValue(Parent.Default), "[$-en-US]dd/mm/yyyy")
..Then it will display only the date
PowerApps Date fields on forms are a DateTime Value as indicated by your screenshot:
Cheers,
ManCat
Hi @SaWu
If you unlock the Label for the date (DataCardValue25 in this case) and change its value to:
Text( DateTimeValue(Parent.Default), "[$-en-US]dd/mm/yyyy")
..Then it will display only the date
PowerApps Date fields on forms are a DateTime Value as indicated by your screenshot:
Cheers,
ManCat
Hi @iAm_ManCat
Thanks for solution in the sense that it gives me what I want.
It appears strange to me though, that the default (locked) DataCard settings for DateOnly fields, confusingly for me, show a time as well.
Thanks,
Sa.
You're welcome, glad to help
.. And yes, the CDS entity is called DateOnly (even though this is likely a date with a 12:00 time that is set to only display the date), so it's an ambiguous case in that PowerApps uses a DateTimeValue to present it.
Happy to help out if you have any further issues with this kind of thing going forward - just raise a new request and either I or one of the others on the forum will be able to help
User | Count |
---|---|
142 | |
136 | |
78 | |
74 | |
73 |
User | Count |
---|---|
230 | |
177 | |
68 | |
67 | |
59 |