cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Announcements
We recently received a question asking for advice on how to set up a Dropbox account for an elderly family member. This prompted us to think about the different ways we can make Dropbox more accessible in general, learn about it and add your tips right over here.

Dropbox API Support & Feedback

Find help with the Dropbox API from other developers.

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
1
Ask
2
Comments

Displaying modified date properly

Displaying modified date properly

sanjayssk
Helpful | Level 6

I'm using ListFolderAsync in asp.net. Why doesn't it return the modified date time based on the logged in user's Account time zone? Any idea how to display it in the Account's time zone?

 

Thanks.

1 Accepted Solution

Accepted Solutions

Re: Displaying modified date properly

Greg-DB
Dropboxer

The API itself returns all datetimes in 'UTC and are strings in the ISO 8601 "combined date and time representation" format: 2015-05-15T15:50:38Z'. 

 

The .NET SDK translates these into native DateTime objects, e.g., as returned in FileMetadata.ClientModified. You can use the standard DateTime methods there to format and display the datetime in whatever format or time zone desired.

View solution in original post

1 Reply 1

Re: Displaying modified date properly

Greg-DB
Dropboxer

The API itself returns all datetimes in 'UTC and are strings in the ISO 8601 "combined date and time representation" format: 2015-05-15T15:50:38Z'. 

 

The .NET SDK translates these into native DateTime objects, e.g., as returned in FileMetadata.ClientModified. You can use the standard DateTime methods there to format and display the datetime in whatever format or time zone desired.

Who's talking

Top contributors to this post

  • User avatar
    Greg-DB Dropboxer
What do Dropbox user levels mean?
Need more support?