Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

การเรียก personal.Birthday กรณีที่บัตรมีแต่ปีเกิดจะเป็นอย่างไร #1

Open
robocon opened this issue Sep 27, 2021 · 2 comments

Comments

@robocon
Copy link

robocon commented Sep 27, 2021

สงสัยครับว่า กรณีที่เรียกใช้ personal.Birthday?.ToString("dd/MM/yyyy") แล้วตัวบัตรประชาชนมีแค่ปีอย่างเดียว
อย่างเช่น คนแก่บางคนที่จำวันเกิดและเดือนเกิดตัวเองไม่ได้
ค่าที่ได้จากรูปแบบ dd/MM/yyyy จะออกมาหน้าตาประมาณไหนครับ

@j888888887777777
Copy link

เป็นปัญหาเหมือนกันครับบางคนข้อมูลในบัตรมีเเค่ Year แล้วทำให้ดึงข้อมูลไม่ได้ครับ

@TakaRuangshawk
Copy link

กรณี Birthday? แล้วเรียกออกมาไม่ได้ ลองไปเรียกBirthdayYearStringแทนดูครับ
lbl_birthday.Text = personal.Birthday?.ToString("dd/MM/yyyy") ?? personal.BirthdayYearString ?? "";

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants