Culture and date format for converting date string to date?

  • 22 August 2018
  • 3 replies
  • 12 views

Badge +7

In my workflow I need to convert a date string into a date. The input language is Dutch ("maart" being "March"). 

What did I not configure right? I'm getting a conversion error saying the input value does not match the date format. (I looked up the culture at http://www.basicdatepicker.com/samples/cultureinfo.aspx)

The conversion works fine with English language input:


3 replies

Badge +7

Hi,

Please have a look:

 

Badge +7

I've seen this, thanks! I also looked at Custom Date and Time Format Strings | Microsoft Docs.

I realise these are all examples for date to string conversions, of course I'm trying to convert string to date. Maybe the culture only applies to the output date and not the input? 

It is my understanding that I should be able to combine custom fomat specifiers. The format d MMMM yyyy is not bound to one culture specifically.

Badge

Can you have  the date in other Languages? in Dutch?

It is possible to add an Culture option? 

I need the function convertToString(datenow()) in Portuguese : "segunda-feira, 07 de junho de 2021"

Reply