PB (9.0) Date Format Problem
PB (9.0) Date Format Problem
(OP)
Simple way to change the standard mom_date "APR 12, 2016" over to 04/12/2016?
I'm trying to follow an example that I have but it doesn't seem to be working.
Also, how to change the military time clock to regular time with AM & PM used?
I'm trying to follow an example that I have but it doesn't seem to be working.
Also, how to change the military time clock to regular time with AM & PM used?





RE: PB (9.0) Date Format Problem
global dt
# gets date/time in format better than mom_date
set dt [string toupper [clock format [clock seconds] -format "%d-%b-%Y %I:%M %p"]]
Rick D.
Win7 64 bit w/NX9.0.3.4 MP9 and NX10.0.3
Vericut 7.4
RE: PB (9.0) Date Format Problem
I tried changing the time format but I got an error. I'm new at NX PB, so could you take a look at the
attached (2) files and correct my problems?
Thanks
Curtis
RE: PB (9.0) Date Format Problem
Here's the error file from the above PB command file where I changed the DT.
RE: PB (9.0) Date Format Problem
global dt
set dt [string toupper [clock format [clock seconds] -format "%d-%b-%Y %I:%M %p"]]
global mom_output_file_basename
set mom_output_file_basename [string toupper $mom_output_file_basename]
global mom_definition_file_name
set full_postname [file rootname $mom_definition_file_name]
set post_filename [lindex [file split $full_postname] end]
set post_filename [string toupper $post_filename]
MOM_output_literal "\015"
MOM_output_literal "(DATE: $dt)"
MOM_output_literal "(POST NAME: $post_filename)"
MOM_output_literal "(PART NAME: $mom_output_file_basename)"
MOM_output_literal "\015"
MOM_output_literal "\015"
Win7 64 bit w/NX9.0.3.4 MP9 and NX10.0.3
Vericut 7.4
RE: PB (9.0) Date Format Problem
I can't seem to make this work. Please take a look at it.
RE: PB (9.0) Date Format Problem
RE: PB (9.0) Date Format Problem
Mark Rief
NX CAM Customer Success
Siemens PLM Software
RE: PB (9.0) Date Format Problem
The space didn't work.