[SOLVED] Â Data Imports - Date Format Issue |
5/1/2019 6:22:50 AM |
ASPRunner.NET General questions | |
M
Mack88 authorDevClub member
I'm having an issue or two with importing data from an Excel file. I want to insert the date that the record was created and would prefer not to provide that as part of the import records. I've set the "DateCreated" field to read only with a default value of DateTime.Now. This works fine for records created via the UI ... data is correctly saved in local (Australian) format. However, when the data are imported, nothing is saved to the "DateCreated" field. Thenother fields are imported perfectly. If I use the Before Insert Record event, and provide some code:
|
|
Sergey Kornilov 5/1/2019 | |
In regards to getting DateTime value in required format check this: |
M
|
Mack88 authorDevClub member 5/2/2019 |
In regards to getting DateTime value in required format check this: https://stackoverflow.com/a/32749/10969
|