I have developed a customized invoice tdl , in this tdl working fine, but in the invoice, print has shown machine time like 13:51, but I want to be shown as 1.51 with am or pm so how to get this.
Show your field code ................. Actually one does not need to specify "12 hour" as it is the default setting, in absence of any any other parameters. So you must have added some parameters.....show field code, so we can understand.
@amit SIR, Please see this code [Line:OK Invoice Time] Field: Medium Prompt, Simple Field Local: Field: Medium Prompt: Set as: " वेळ : - " Local: Field: Medium Prompt: Style: P9B Local: Field: Medium Prompt: Width: 20 Local: Field: Simple Field: Set as: $$String:$$MachineTime Local: Field: Simple Field: Style: P9 Local: Field: Simple Field: Full Width: Yes Space Top:0.5 AND SEE THIS IMAGE
[Line:OK Invoice Time] Field: Medium Prompt, MyTimeField Local: Field: Medium Prompt: Set as: " वेळ : - " Local: Field: Medium Prompt: Style: P9B Local: Field: Medium Prompt: Width: 20 Space Top:0.5 [Field : Mytimefield] Use : Name Field Type : Time Set as : $$String:$$MachineTime Style: P9 Full Width: Yes
@amit sir as per your solution not getting the result , shown like 13:15 only, but I want like normal time like now the time is 1:16 pm so how ??
not working sir where to add this FORMAT - LIKE THIS BELOW 1 ] AS PER YOUR SOLUTION NOT WORKING AND AS PER LUMOS SOLUTION ALSO NO WORKING. [Line: OK Invoice Time] Field: Medium Prompt, MyTimeField Local: Field: Medium Prompt: Set as: " वेळ : - " Local: Field: Medium Prompt: Style: P9B Local: Field: Medium Prompt: Width: 20 Space Top:0.5 [Field: Mytimefield] Use: Name Field Type: Time Set: $$Time:$$MachineTime Format: "12 Hour" Style: P9 Full Width: Yes OR [Line: OK Invoice Time] Field: Medium Prompt, Simple Field Local: Field: Medium Prompt: Set as: " वेळ : - " Local: Field: Medium Prompt: Style: P9B Local: Field: Medium Prompt: Width: 20 Local: Field: Simple Field:Set: $$Time:$$MachineTime Format: "12 Hour" Local: Field: Simple Field: Style: P9 Local: Field: Simple Field: Full Width: Yes Space Top:0.5 BOTH OF NOW WORKING PROPERLY, WHY ??
Remove type:time from your field [Line: OK Invoice Time] Field: Medium Prompt, MyTimeField Local: Field: Medium Prompt: Set as: " वेळ : - " Local: Field: Medium Prompt: Style: P9B Local: Field: Medium Prompt: Width: 20 Space Top:0.5 [Field: Mytimefield] Use: Name Field Set: $$Time:$$MachineTime Format: "12 Hour" Style: P9 Full Width: Yes OR [Line: OK Invoice Time] Field: Medium Prompt, Simple Field Local: Field: Medium Prompt: Set as: " वेळ : - " Local: Field: Medium Prompt: Style: P9B Local: Field: Medium Prompt: Width: 20 Local: Field: Simple Field:Set: $$Time:$$MachineTime Local: Field: Simple Field:Format: "12 Hour" Local: Field: Simple Field: Style: P9 Local: Field: Simple Field: Full Width: Yes Space Top:0.5 Now both of them should work theorotically.
@lumos yes I already removed this, but not getting a result , now as per your solution, showing as an error in tdl, 'Function: Time' could not find description!
The code I have given is working for me..... without the FORMAT..... as I said earlier default is 12 hour, so it need not be specified again. [Field: Mytimefield] Use: Name Field Type: Time Set: $$Time:$$MachineTime Style: Normal Width: 15 Also see the screenshot below..... it is 6.59 pm and NOT 18.59
Still, if you are not able to achieve it, then try changing the Windows System time format to 12 hour. Then reboot the window system, for the changes to take effect.