Dates and Times

How dates and times work within the LMS API.

Introduction

Dates and times are stored within LoanPro's API in specific ways. Here's a guide for interpreting the date and time values that you pull from our system.

Dates

When dates are submitted via the API, they are formatted as YYYY-MM-DD or YYYY-MM-DD hh:mm:ss. But you'll notice that the LoanPro API returns dates in the following format: /Date(1427829732)/

This is a Unix format, and it displays the number of seconds that have passed since January 1, 1970. This format isn't very intuitive for human users, so if you need to grab date information on something that was logged within the system, you will need to convert the Unix format into a standard date. There are various ways to do this, and using an online Epoch Converter is an easy solution.

Times

All times stored in LoanPro's API are in UTC (Coordinated Universal Time). Additionally, all time values that you submit via the API must also be formatted in UTC. Time values that are displayed within the LMS UI are actually in the UTC format, but the UI converts these dates based on the time zone selection in your tenant account settings.