asp.net - Setting the date format on an excel cell programmatically -
i generate excel sheet aout of table in asp. exporting works fine using in-house developed framework export table. problem i'm having dates written in columns strings , not initialized proper cell format. there way format date without 3rd party software setting value of cell string?? such as:
sheet[i,j].value = "{:datetime}"+datestringproperlyformatted
i'm not in front of appropriate box test @ moment, should able format range like:
rangeofinterest.numberformat = "mm/dd/yyyy"
the range single cell, or whatever you'd like. entire row with:
rangeofinterest.entirecolumn.numberformat = "mm/dd/yyyy"
there's :"entrerow" version too, although don't recall having ever used it.
Comments
Post a Comment