Archive for July, 2012

For our Moodle site, I had to add custom user profile date field called starting date. I was using Moodle’s  upload user utility to load user data through csv file and it wouldn’t load the date correctly. After struggling for four days, I found out that Moodle loads date in unix time or epoch time. I used following formula to convert date in mm/dd/yyyy format to Moodle date format
Moodle date =((date -25569) * 86400) + 21600