Hi all.
I have a PowerApp formular where i use some date field pickers. I need to convert the date from the datepicker to "d. mmmm yyyy" so that 19-12-2018 would be converted to 19. december 2018. I can easly do this in a SharePoint list, but I am struggeling to get this done in PowerApps. When i use the "Now()" function it works okay, but when I use a date picker field, the trouble begins.
I think I might be doing something wrong when trying to convert the datefield. I have read several articles, but not yet found the answer. Hope anyone in this forum can help.
Greeting from Denmark
/Frank
Solved! Go to Solution.
Hi @venseben,
Could you please share a bit more about the issue that you mentioned?
Do you want to convert the date format within the Date Picker control into "d. mmmm yyyy" or convert the date value selected from the Date Picker control into "d. mmmm yyyy"?
Further, could you please share more details about the issue formula within your app?
If you want to convert the date value selected from the Date Picker control into "d. mmmm yyyy", I have made a test on my side, and don't have the issue that you mentioned. The screenshot as below:
Set the Text property of the Label control to following:
Text(DatePicker1.SelectedDate, "[$-en-US]d. mmmm yyyy")
If you want to convert the date format within the Date Picker control into "d. mmmm yyyy", I have made a test on my side, the screenshot as below:
Set the Format property of the Date Picker control to following:
"d. mmmm yyyy"
Please check if you have typed proper Date time value within the Text function in your app. If the issue still exists, please consider take a try to re-create your app, then check if the issue is solved.
Best regards,
Kris
Hi @venseben,
Could you please share a bit more about the issue that you mentioned?
Do you want to convert the date format within the Date Picker control into "d. mmmm yyyy" or convert the date value selected from the Date Picker control into "d. mmmm yyyy"?
Further, could you please share more details about the issue formula within your app?
If you want to convert the date value selected from the Date Picker control into "d. mmmm yyyy", I have made a test on my side, and don't have the issue that you mentioned. The screenshot as below:
Set the Text property of the Label control to following:
Text(DatePicker1.SelectedDate, "[$-en-US]d. mmmm yyyy")
If you want to convert the date format within the Date Picker control into "d. mmmm yyyy", I have made a test on my side, the screenshot as below:
Set the Format property of the Date Picker control to following:
"d. mmmm yyyy"
Please check if you have typed proper Date time value within the Text function in your app. If the issue still exists, please consider take a try to re-create your app, then check if the issue is solved.
Best regards,
Kris
WOOOOOOW - @v-xida-msft, you just saved my day
Both of your tips are working just great. Think I was to much in "SharePoint" mode. PowerApps realy looks awesome, but I need a steep learning curve.
have a great day, and a merry X-mas
/Frank
Hi @v-xida-msft
With DatePicker1.SelectedDate we can get only "date/Month/Year" but how to get "Hours+Minutes" along with date, would like to get date and Time also.
Can you help us ..?
i also tried with below
working till only date but not time.
Text((DateValue1.SelectedDate) And (HourValue1.SelectedText) And (Minutes1.SelectedText))
Text((DateValue1.SelectedDate) And Text((HourValue1.SelectedText)) And Text((Minutes1.SelectedText)))
getting error like function Text has invalid arguments.
If someone want to omit the month and year and need only date how to convert day from week to its name like 1 to monday
User | Count |
---|---|
261 | |
115 | |
97 | |
48 | |
41 |