date and time format (DD/MM/YY)
Posted: Tue Jun 18, 2013 10:13 am
Dear LiveCode Gurus.
Need so help on date and time. My objective is to:
1st get the user to fill in 2 field of Start time in this format - dd/mm/yy followed by hh:mm. Preferably the user will not have to key in the "/" and ":".
2nd get the user to filed in the Stop time in the same format above fo rhte additional 2 more fields.
3rd take the Stop time - the Start time
4th get the difference and place it into a 5th field.
below are the example codes from codes from a user that I want to modify.
I have not fully coded the 4th objective as I wanted to ensure that I can achieve objective 1 and 2 first.
Could the LiveCode gurus please help.
Best Regards
Subas
Need so help on date and time. My objective is to:
1st get the user to fill in 2 field of Start time in this format - dd/mm/yy followed by hh:mm. Preferably the user will not have to key in the "/" and ":".
2nd get the user to filed in the Stop time in the same format above fo rhte additional 2 more fields.
3rd take the Stop time - the Start time
4th get the difference and place it into a 5th field.
below are the example codes from codes from a user that I want to modify.
Code: Select all
put field 1 && field 2 into tStartDate
convert tStartDate to internet date
put tStartDate into field 6
convert tStartDate to seconds
put field 3 && field 4 into tEndDate
convert tEndDate to internet date
put cr & tEndDate after field 6
convert tEndDate to seconds
put tEndDate - tStartDate into tAllSeconds
Could the LiveCode gurus please help.
Best Regards
Subas