web
You’re offline. This is a read only version of the page.
close
Skip to main content
Community site session details

Community site session details

Session Id :
Power Up Program - Build A Canvas App
Suggested Answer

JSON returns one day less from date cloumns

(0) ShareShare
ReportReport
Posted on by 57
Hi Everyone,
 
Kindly assist I'm struggling with JSON in canvas App. I'm trying to export filtered field to excel, however JSON gives one day less from all my date columns, my code is as follows:
UpdateContext({varJSON: JSON(ShowColumns(
AddColumns(
Filter(
GLBApplications,
(IsBlank(DatePickerCanvas1.SelectedDate) || 'DATE OF LODGEMENT (dd/mm/yyyy)' >= DatePickerCanvas1.SelectedDate) &&
(IsBlank(DatePickerCanvas2.SelectedDate) || 'DATE OF LODGEMENT (dd/mm/yyyy)' <= DatePickerCanvas2.SelectedDate) &&
(IsBlank(DropdownCanvas1.Selected.Value) || 'APPLICATION STATUS' = DropdownCanvas1.Selected.Value)
),PRESF,Text('PRESCRIBED FEE'),LICTYPE,Text('LICENSE TYPE'),REG,Text(REGION), COMPL, Text('COMPLETE/INCOMPLETE'),APPSTAT,Text('APPLICATION STATUS'),DEC,Text('DECISION (granted/decline)')),
'APPLICATION REFERENCE NUMBER NO','PAYMENT REFERENCE NO','NAME OF PREMISE','NAME OF APPLICANT','ADDRESS OF LICENSED PREMISES',
'DATE OF LODGEMENT (dd/mm/yyyy)','DATE OF PAYMENT (dd/mm/yyyy)',PRESF,'AMOUNT PAID','REASON FOR UNDER/OVER PAYMENT',LICTYPE,SUBURB,REG,'CONTACT DETAILS OF LICENSE HOLDER',EMAIL,COMPL,'DATE OF INSPECTION','DATE TO SECRETARIAT','DATE OF FIRST CONSIDERATION','ACTIVATION OR LICENCE ISSUE DATE',APPSTAT,DEC,'DECISION DATE','COMMENT (if any)','REPORTING DATE','Created By','Created On','Modified By','Modified On'
),JSONFormat.IndentFour)});
 
Thank you in advance.
Categories:
I have the same question (0)
  • Suggested answer
    Vahid Ghafarpour Profile Picture
    666 Super User 2025 Season 2 on at
    JSON returns one day less from date cloumns
    I believe it happens as result of your timezone and the UTC value when call the JSON()
    At least it was same for me before.
     
    Important: Avoid Date only format with User local behavior. Users in different time zones might see a different date, which is not intended in most scenarios
     
     
  • lbendlin Profile Picture
    8,474 Super User 2025 Season 2 on at
    JSON returns one day less from date cloumns
    Always, always, always use UTC and ISO8601 format.
  • Michael E. Gernaey Profile Picture
    52,569 Super User 2025 Season 2 on at
    JSON returns one day less from date cloumns
     
    Please let the posters know if they answered your question.
  • Petrusottie1 Profile Picture
    57 on at
    JSON returns one day less from date cloumns
    Thank you so much for responds....I change my time zone setting to date only, it was set to local user then JSON parses and adjust time to my time zone.

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Forum hierarchy changes arriving December 5th!

Important updates for the Power Up Program Community – simplifying the forums…

Chiara Carbone – Community Spotlight

We are honored to recognize Chiara Carbone as our Community Spotlight for November…

Leaderboard > Microsoft Power Up Program Community

#1
timl Profile Picture

timl 437 Super User 2025 Season 2

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 169 Super User 2025 Season 2

#3
mmbr1606 Profile Picture

mmbr1606 109 Super User 2025 Season 2

Last 30 days Overall leaderboard

Featured topics