cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
BartaJaroslav
Helper I
Helper I

Date, DateTime, SQL AZURE

WEBVERSION,Czech localization,

 

If I create field type Date in SQL server - i can not see value in PowerApps

If I create field type DateTime in SQL server - I can see value, but I can not change format over

Text(Parent.Default;"[$-cs-CZ]dd.mm.yyyy") - on screen is with time part

11 REPLIES 11

Thanks, this post will take some time for me to fully process but it is quite interesting!

 

I did get my date filters working by creating computed date fields in the database and then referencing them in the gallery filter. Took a fair amount of monkeying around but it works fine after getting it right.

 

Something like this for the date only field (where [StartDate] is a UTC datetime field)

 

(CONVERT([varchar],[StartDate],(101)))

And then something along these lines in the gallery filter (where StartDateOnly is the name of the column created with only the date).

 

Sort(
        Filter('[dbo].[Events]',  DateValue(StartDateOnly) >= 
        varFirstDayOfMonth, DateValue(StartDateOnly)  <= 
        DateAdd(DateAdd(varFirstDayOfMonth,1,Months),-1,Days)
       ,EventCategoryID = GalleryLeftMenu.Selected.ID),
StartDateOnly,Descending)

I'm sure there are other ways but this seems to work pretty well.

MasterB
Advocate II
Advocate II

Helpful resources

Announcements
PA_User Group Leader_768x460.jpg

Manage your user group events

Check out the News & Announcements to learn more.

Power Query PA Forum 768x460.png

Check it out!

Did you know that you can visit the Power Query Forum in Power BI and now Power Apps

Carousel 2021 Release Wave 2 Plan 768x460.jpg

2021 Release Wave 2 Plan

Power Platform release plan for the 2021 release wave 2 describes all new features releasing from October 2021 through March 2022.

R2 (Green) 768 x 460px.png

Microsoft Dynamics 365 & Power Platform User Professionals

DynamicsCon is a FREE, 4 half-day virtual learning experience for 11,000+ Microsoft Business Application users and professionals.

Users online (1,313)