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 I
Advocate I

Helpful resources

Announcements
PA User Group

Welcome to the User Group Public Preview

Check out new user group experience and if you are a leader please create your group

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

V3_PVA CAmpaign Carousel.png

Community Challenge - Giveaways!

Participate in the Power Virtual Agents Community Challenge

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.

Carousel April Dunnam Updated 768x460.jpg

Urdu Hindi D365 Bootcamp

Dont miss our very own April Dunnam’s The Developer Guide to the Galaxy! Find out what the Power Platform has to offer for the traditional developer.

Top Solution Authors
Top Kudoed Authors
Users online (3,172)