檔案處理的一些資料收集

2021-03-31 08:56:31 字數 633 閱讀 4237

獲取檔名

private sub button1_click(byval sender as system.object, byval e as system.eventargs) handles button1.click

if not (aa.postedfile is nothing) then

dim nam as string = aa.postedfile.filename

dim i as integer = nam.lastindexof(".")

dim newext as string = nam.substring(i)

newext = datetime.now.year.tostring() + datetime.now.month.tostring + datetime.now.day.tostring + datetime.now.hour.tostring + datetime.now.minute.tostring + datetime.now.second.tostring + newext

'  response.write(newext)

response.write(aa.postedfile.filename)

response.write("

")

有關myxls收集的一些資料

string sheetname chc 例項 worksheet sheet xls.workbook.worksheets.addnamed sheetname 填加名為 chc 例項 的sheet頁 cells cells sheet.cells cells例項是sheet頁中單元格 cell...

資料的一些處理

1.int curr pfind parr pstart 指標相減確定下標 printf n curr d curr 同型別相減,自動除以型別 2.寬字元 0佔2個位元組,在寬字元中1個字元佔用2個位元組,窄字元 0佔1個位元組,在窄位元組中1個字元佔用1個位元組。寬字元只不過是用了一個大盒子來存放...

JSON DATE 轉換標準的一些資料(收集)

json的date標準還沒出來,所以有各種花樣的date,而我們經常在js上使用自然問題多多了。關於標準可以看 如果您使用的微軟的json序列化庫那麼date會是這個樣子 date 1224043200000 下面是轉換成js obj的方法var date eval jsondate.replace...

JSON DATE 轉換標準的一些資料(收集)

如果您使用的微軟的json序列化庫那麼date會是這個樣子 date 1224043200000 下面是轉換成js obj的方法var date eval jsondate.replace date d gi,new date 1 一般做法var date new date parseint jso...

JSON DATE 轉換標準的一些資料(收集)

json的date標準還沒出來,所以有各種花樣的date,而我們經常在js上使用自然問題多多了。關於標準可以看 如果您使用的微軟的json序列化庫那麼date會是這個樣子 date 1224043200000 下面是轉換成js obj的方法var date eval jsondate.replace...