Forum Discussion

shuhn1229's avatar
shuhn1229
Resolver I
2 years ago
Solved

Convert Date to String

Hi all,

 

Pretty basic question. I'm trying to filter out all files that do not contain today's date in the file name. For this I have: 

 

Table.SelectRows(#"Renamed Columns1", each Text.Contains([Source.Name], "DATE"))

 

I am trying to replace "DATE" with Date.toFrom(DateTime.LocalNow()), so that this can be dynamic, but this throws a conversion error. Can anyone help with this?

 

Thanks!

  • Date.ToText(Date.From(DateTime.LocalNow()),[Format="ddMMMyyyy"])

3 Replies