cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Post Patron
Post Patron

Date Format not working in Lookup

I have a date "StartDate" in a list called Group. Its a date only type standard format in the SP list.

On the Custom form I have the format in the date picker "ddd mmm yyyy"

 

In the lookup I cannot get it to work using 

 

LookUp(Group,ID=ThisItem.GroupID,DateValue(Text(StartDate,"[$-en-US]ddd mmm yyyy")))

 

Am I doing things right? 

1 ACCEPTED SOLUTION

Accepted Solutions
Super User III
Super User III

Text(LookUp(Group,ID=ThisItem.GroupID,StartDate),"dd-mmm-yy)

Is this the formula inside a gallery

If you like this post, give a Thumbs up. Where it solved your request, Mark it as a Solution to enable other users find it.

View solution in original post

6 REPLIES 6
Super User III
Super User III

Text(LookUp(Group,ID=ThisItem.GroupID,StartDate),"dd-mmm-yy)

Is this the formula inside a gallery

If you like this post, give a Thumbs up. Where it solved your request, Mark it as a Solution to enable other users find it.

View solution in original post

Super User III
Super User III

Hi @StuCundy ,

You need to refer to something matching the date - if equaling (exactly) your Date Picker for example, it would be as below

LookUp(
   Group,
   ID=ThisItem.GroupID &&
   DateDiff(
      YourDatePicker.SelectedDate,
      StartDate,
      Days
   )=0
)

If greater than/less than a bit easier. What are you wanting to match it to?

 

Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.

Thanks @eka24 OMG perfect!

Hi @WarrenBelz 

I can see that using this from within the gallery would work.  I am actually formatting an email and want to include data from a number of data sources so the formula @eka24 provided was perfect.  Thank you as well.

If it worked then mark as a solution

@StuCundy ,

Yes @eka24 was a bit better mind reader in this instance (and Your DatePicker reference lead me down the track I took).

Just bear in mind for the future, the more specific information you provide on exactly what you are trying to do, the more accurate the response you will get.

Helpful resources

Announcements
secondImage

Experience what’s next for Power Apps

Join us for an in-depth look at the new Power Apps features and capabilities at the free Microsoft Business Applications Launch Event.

Power Apps Community Call

Power Apps Community Call: February

Did you miss the call? Check out the Power Apps Community Call here.

New Power Super Users

Congratulations!

We are excited to announce the Power Apps Super Users!

New Badges

New Solution Badges!

Check out our new profile badges recognizing authored solutions!

Top Kudoed Authors
Users online (25,565)