Forum Discussion

Luddekudde's avatar
Luddekudde
Advocate I
8 years ago
Solved

Day function reading month

Hi, I'm using a DAY function to read the day out of a column with the date in dd/mm/yyyy format.

However when the day is 12 or below the function reads the month instead, as you can see in the picture.

The column [days in between] reads the [ZAPPDATE] with a DAY function, but when the day value equals 12 or lower it instead reads the month value.

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

I have my dateformat set to dd/mm/yyyy on my computer so that shouldn't be the problem. Any ideas?

 

Thanks

  • That does seem odd.  What data time are you using for the [ZAPPDATE] column?

     

    And if you are using Date/Time what does your [ZAPPDATE] column show if you set the Format to something a little more verbose?

     

  • Luddekudde's avatar
    Luddekudde
    8 years ago

    Thanks! The trick was to change the format outside of the query-editor.

2 Replies

  • Phil_Seamark's avatar
    Phil_Seamark
    Microsoft Employee

    That does seem odd.  What data time are you using for the [ZAPPDATE] column?

     

    And if you are using Date/Time what does your [ZAPPDATE] column show if you set the Format to something a little more verbose?

     

    • Luddekudde's avatar
      Luddekudde
      Advocate I

      Thanks! The trick was to change the format outside of the query-editor.