fix format date
This commit is contained in:
parent
1253acd1f4
commit
7938797e9a
1 changed files with 6 additions and 4 deletions
|
|
@ -177,11 +177,11 @@ export class ProfileController extends Controller {
|
||||||
LastName: profile.lastName != null ? profile.lastName : "",
|
LastName: profile.lastName != null ? profile.lastName : "",
|
||||||
DateOfBirth:
|
DateOfBirth:
|
||||||
profile.birthDate != null
|
profile.birthDate != null
|
||||||
? Extension.ToThaiNumber(Extension.ToThaiFullDate(profile.birthDate))
|
? Extension.ToThaiNumber(Extension.ToThaiShortDate_noPrefix(profile.birthDate))
|
||||||
: "",
|
: "",
|
||||||
DateRetire:
|
DateRetire:
|
||||||
profile.dateRetire != null
|
profile.dateRetire != null
|
||||||
? Extension.ToThaiNumber(Extension.ToThaiFullDate(profile.dateRetire))
|
? Extension.ToThaiNumber(Extension.ToThaiShortDate_noPrefix(profile.dateRetire))
|
||||||
: "",
|
: "",
|
||||||
RegistrationAddress: Extension.ToThaiNumber(
|
RegistrationAddress: Extension.ToThaiNumber(
|
||||||
`${_regisAddres}${_subDistrict}${_district}${_province}${registrationZipCode}`,
|
`${_regisAddres}${_subDistrict}${_district}${_province}${registrationZipCode}`,
|
||||||
|
|
@ -197,11 +197,13 @@ export class ProfileController extends Controller {
|
||||||
: "",
|
: "",
|
||||||
AppointText:
|
AppointText:
|
||||||
profile.dateAppoint != null
|
profile.dateAppoint != null
|
||||||
? Extension.ToThaiNumber(Extension.ToThaiFullDate(profile.dateAppoint))
|
? Extension.ToThaiNumber(Extension.ToThaiShortDate_noPrefix(profile.dateAppoint))
|
||||||
: "",
|
: "",
|
||||||
SalaryDate:
|
SalaryDate:
|
||||||
profile.profileSalary.length > 0 && profile.profileSalary[0].date != null
|
profile.profileSalary.length > 0 && profile.profileSalary[0].date != null
|
||||||
? Extension.ToThaiNumber(Extension.ToThaiFullDate(profile.profileSalary[0].date))
|
? Extension.ToThaiNumber(
|
||||||
|
Extension.ToThaiShortDate_noPrefix(profile.profileSalary[0].date),
|
||||||
|
)
|
||||||
: "",
|
: "",
|
||||||
PositionName: profile.position != null ? profile.position : "",
|
PositionName: profile.position != null ? profile.position : "",
|
||||||
OcFullPath: `${_child4}${_child3}${_child2}${_child1}${_root}`,
|
OcFullPath: `${_child4}${_child3}${_child2}${_child1}${_root}`,
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue